UNPKG

@mayank1513/sticky-section-header

Version:

[![npm version](https://badge.fury.io/js/@mayank1513%2Fsticky-section-header.svg)](https://badge.fury.io/js/@mayank1513%2Fsticky-section-header)

12 lines 551 B
import { HTMLProps, ReactElement, ReactNode } from "react"; type StickySectionHeaderProps = { children: ReactNode; top?: number; viewPort?: ReactElement; callBack?: (entry: any) => void; stick?: boolean; tag?: keyof JSX.IntrinsicElements /**html tag to replace header for SEO and symantics */; }; export declare function StickySectionHeader({ children, top, viewPort, callBack, stick, tag, ...props }: StickySectionHeaderProps & HTMLProps<HTMLElement>): JSX.Element; export {}; //# sourceMappingURL=StickySectionHeader.d.ts.map