Skip to main content

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

ParameterType
propsScrollTopButtonProps & 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

MemberType
hideboolean
onClick() => void

Source

libs/design-system-core/src/components/ScrollTopButton/index.tsx:7