mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
35 lines
728 B
TypeScript
35 lines
728 B
TypeScript
import * as Sticky from "react-stickynode";
|
|
import * as React from "react";
|
|
|
|
const StickyAllOptions: JSX.Element = (
|
|
<Sticky
|
|
enabled={true}
|
|
top={10}
|
|
bottomBoundary={120}
|
|
innerZ={1000}
|
|
enableTransforms={true}
|
|
activeClass="active"
|
|
releasedClass="released"
|
|
onStateChange={s => s.status === Sticky.StatusCode.STATUS_ORIGINAL}
|
|
shouldFreeze={() => false}
|
|
>
|
|
<div />
|
|
</Sticky>
|
|
);
|
|
|
|
const StickyOptionalStringOptions: JSX.Element = (
|
|
<Sticky
|
|
top="#elem"
|
|
bottomBoundary="#bottom"
|
|
innerZ="1234"
|
|
>
|
|
<div />
|
|
</Sticky>
|
|
);
|
|
|
|
const StickyNoOptions: JSX.Element = (
|
|
<Sticky>
|
|
<div />
|
|
</Sticky>
|
|
);
|