UNPKG

@vnmfify/core

Version:

```shell npm i @vnmfify/core -S ```

23 lines (22 loc) 791 B
import { ViewProps } from "@vnxjs/components/types/View"; import { PageScrollObject } from "@vnxjs/vnmf"; import { CSSProperties, MutableRefObject, ReactNode } from "react"; declare type StickyPosition = "top" | "bottom"; interface StickyOffset { top?: number | string; bottom?: number | string; } interface StickyProps extends ViewProps { className?: string; style?: CSSProperties; position?: StickyPosition; offset?: StickyOffset; offsetTop?: number | string; offsetBottom?: number | string; container?: MutableRefObject<Element | undefined>; children?: ReactNode; onChange?(fixed: boolean): void; onScroll?(scroll: PageScrollObject): void; } export default function Sticky(props: StickyProps): JSX.Element; export {};