ScrollTopButton
Components
ScrollTopButton()
ScrollTopButton(
props
):ReactNode
A ScrollTopButton component is often displayed at the bottom of a long page with lots of content. It provides a quick way for users to navigate back to the top of the page without excessive scrolling.
Parameters
Parameter | Type |
---|---|
props | ScrollTopButtonProps & RefAttributes <HTMLDivElement > |
Returns
ReactNode
Example
<ScrollTopButton hide={false} onClick={onScrollToTop} />
Source
libs/design-system-core/src/components/ScrollTopButton/index.tsx:22
Props
ScrollTopButtonProps
ScrollTopButtonProps:
object
Type declaration
Member | Type |
---|---|
hide | boolean |
onClick | () => void |
Source
libs/design-system-core/src/components/ScrollTopButton/index.tsx:7