Skip to main content

ScrollTopWrapper

Components

ScrollTopWrapper()

ScrollTopWrapper(props, context?): ReactNode

The ScrollTopWrapper component is, as its name implies, a wrapper around the ScrollTopButton component. This component determines the position of the ScrollTopButton on a page.

Parameters

ParameterType
propsPropsWithChildren <ScrollTopWrapperProps>
context?any

Returns

ReactNode

Example

  <ScrollTopWrapper placement={scrollTopButtonPlacement}>
<ScrollTopButton hide={false} onClick={onScrollToTop} />
</ScrollTopWrapper>

Source

libs/design-system-core/src/components/ScrollTopWrapper/index.tsx:19

Props

ScrollTopWrapperProps

ScrollTopWrapperProps: object

Type declaration

MemberType
placementReact.CSSProperties["marginLeft"]

Source

libs/design-system-core/src/components/ScrollTopWrapper/index.tsx:4