Back to top
Style
A back to top is a pill-shaped button that is anchored to the bottom right corner of a page.
Anatomy
Theme
The back to top button looks the same in light and dark themes.
Space
A back to top button has 4px of padding on the left and right, 8px of padding on the top and bottom, and a 4px gap between text and icon. The amount of space remains the same on all breakpoints.
Interaction states
Interaction states are visual representations used to communicate the status of an element or pattern.
Hover
The background color of the button turns to a darker blue on hover. It also has a white border adjacent to the button and a dark blue outline adjacent to the border. This ensures contrast against all surface colors.
Focus
Helpful tip
The Focus state has the same styles as the Hover state.
Active
Helpful tip
The Active state has the same styles as the Hover state.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.
Other libraries
To learn more about our other libraries, visit this page.