Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA floating button that appears after scrolling, shows scroll progress in a ring, and returns the reader to the top.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
| Prop | Type | Default | Description |
|---|---|---|---|
threshold | number | 320 | Scroll distance in pixels after which the button appears. |
container | RefObject<HTMLElement | null> | - | Scrollable element to watch and scroll instead of the page. |
showProgress | boolean | true | Draw a ring that fills with scroll progress. Ignored when showLabel is set. |
focusTarget | string | "main" | CSS selector of the element that receives focus after scrolling. Falls back to <body>. |
label | string | "Back to top" | Button text and accessible name. |
showLabel | boolean | false | Show the label next to the arrow. |
Also accepts all <button> props except onClick.
fixed to the bottom end corner of the viewport. Add absolute to className to place it inside a positioned container, as the demo does.focusTarget (it gets tabindex="-1" if needed), so keyboard users do not lose their place when the button disappears.