import { type ElementType, ReactNode } from 'react'; type Props = { /** * Function that renders the content when the element is stuck * @param isStuck - Indicates if the element is stuck * @returns ReactNode */ children: (isStuck: boolean) => ReactNode; /** * CSS class applied when the element is "stuck" */ stickyClass?: string; /** * Element type to render (defaults to div) */ element?: ElementType; /** * Offset from the top of the scrolling container to trigger stickiness (default 0) */ stickyOffset?: number; /** * Set to true to disable sticky behavior */ disabled?: boolean; /** * Manually set z-index. Useful for managing the stacking order of sticky elements when multiple components compete. * Higher z-index values will make the element appear on top of elements with lower z-index values. */ zIndex?: number; }; /** * Renders a sticky container. * * The following is an illustration on how the container's top property is calculated. * * +~~~~~~~~ stickyParent (where the container scrolls) * stickyOffset ~~~~~~~~~~+ | * (e.g. masterbar) | | * v v * +------#-----------------+ * | # |<~~~~~~~+~~~~~ stickyPadding * | +----#--------------+ | * | | # @ |<~+~~~~~ stickyParent's content area * | | # @ | | * | | # @ <~~~~~~~~+~~+~~~~~ the container's top * | | # @ | | (= stickyOffset - stickyPadding) * | | ============= | | * | | ^ | | * | | | | | * | | +~~~~~~~~~~~~~+~~+~~~~~ the container * | | | | */ export declare function StickyContainer(props: Props): import("react").JSX.Element; export {}; //# sourceMappingURL=sticky-container.d.ts.map