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
Parameter | Type |
---|---|
props | PropsWithChildren <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
Member | Type |
---|---|
placement | React.CSSProperties ["marginLeft" ] |
Source
libs/design-system-core/src/components/ScrollTopWrapper/index.tsx:4