mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
790 B
TypeScript
28 lines
790 B
TypeScript
import { Sticky, StickyContainer } from "react-sticky";
|
|
import * as React from "react";
|
|
|
|
const StickyAllOptions: JSX.Element = (
|
|
<StickyContainer className="sticky-container">
|
|
<Sticky
|
|
relative
|
|
disableHardwareAcceleration
|
|
isActive={true}
|
|
className="sticky"
|
|
style={{}}
|
|
stickyClassName="sticky"
|
|
stickyStyle={{}}
|
|
topOffset={0}
|
|
bottomOffset={0}
|
|
onStickyStateChange={(isSticky: boolean): void => undefined}
|
|
>
|
|
{({ style }) => <div style={style} />}
|
|
</Sticky>
|
|
</StickyContainer>
|
|
);
|
|
|
|
const StickyNoOptions: JSX.Element = (
|
|
<StickyContainer>
|
|
<Sticky>{({ style }) => <div style={style} />}</Sticky>
|
|
</StickyContainer>
|
|
);
|