@shopify/polaris
Version:
Shopify’s admin product component library
18 lines (17 loc) • 730 B
TypeScript
import React from 'react';
export declare type StickyProps = {
/** Element outlining the fixed position boundaries */
boundingElement?: HTMLElement | null;
/** Offset vertical spacing from the top of the scrollable container */
offset?: boolean;
/** Should the element remain in a fixed position when the layout is stacked (smaller screens) */
disableWhenStacked?: boolean;
/** Callback run when sticky header is added or removed */
onStickyChange?: (isSticky: boolean) => void;
} & ({
children: React.ReactNode;
} | {
children(isSticky: boolean): React.ReactNode;
});
export declare function Sticky(props: StickyProps): JSX.Element;
//# sourceMappingURL=Sticky.d.ts.map