Components Back to Top Button Back to Top Button Component

Back to Top Button Component

A responsive 'Back to Top' button with Material Design aesthetics, monochromatic color scheme, and dark mode support. It appears as a floating action button (FAB) in the bottom-right corner.

Preview

HTML Code

<div class="fixed bottom-4 right-4 z-50">
  <button aria-label="Scroll to top" class="dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-gray-200 dark:shadow-lg focus:outline-none dark:focus:ring-gray-500 rounded-full bg-gray-800 p-3 text-white shadow-md transition-all duration-300 ease-in-out hover:scale-105 hover:bg-gray-700 focus:ring-4 focus:ring-gray-300 active:scale-95 md:p-4 lg:p-5">
    <svg class="h-6 w-6 md:h-7 md:w-7 lg:h-8 lg:w-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 10l7-7m0 0l7 7m-7-7v18"></path>
    </svg>
  </button>
</div>

Related Components

Back to Top Button

A minimalist flat design Back to Top button component for e-commerce websites, utilizing a grayscale color scheme and responsive design with dark theme support.

Open

Back to Top Button - 3D Design

A Back to Top button with a 3D design, responsive effects, and dark theme support using Tailwind CSS. No JavaScript is included.

Open

Skeuomorphic Back to Top Button

A skeuomorphic 'Back to Top' button designed with warm neutrals for business/corporate websites, featuring responsive design and dark mode support. The button has a 3D pressed effect.

Open