mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
630 B
TypeScript
24 lines
630 B
TypeScript
import * as React from "react";
|
|
import Sticky from "react-sticky-el";
|
|
|
|
const StickyBasic = () => <Sticky />;
|
|
const StickyAllFeatures = () => (
|
|
<Sticky
|
|
mode="bottom"
|
|
disabled
|
|
onFixedToggle={fixed => fixed}
|
|
wrapperCmp="div"
|
|
holderCmp={<div />}
|
|
holderProps={{ title: "a title" }}
|
|
boundaryElement=".an-element"
|
|
scrollElement=".another-element"
|
|
positionRecheckInterval={0}
|
|
stickyStyle={{ display: "block" }}
|
|
stickyClassName="sticky"
|
|
topOffset={0}
|
|
bottomOffset={0}
|
|
hideOnBoundaryHit
|
|
children="a child"
|
|
/>
|
|
);
|