UNPKG

@appbuckets/react-ui

Version:
22 lines (21 loc) 738 B
import * as React from 'react'; import { UIMutableComponentProps } from '../generic'; export interface StickyProps extends UIMutableComponentProps<StrictStickyProps> {} export interface StrictStickyProps { /** Set the bottom offset */ bottomOffset?: number; /** Disable the sticky */ disabled?: boolean; /** Disable the compensation */ disableCompensation?: boolean; /** Disable hardware acceleration */ disableHardwareAcceleration?: boolean; /** On sticky state change handler */ onStickyStateChange?: StickyStateChangeHandler; /** User defined style */ style?: React.CSSProperties; /** Set the top offset */ topOffset?: number; } export declare type StickyStateChangeHandler = (isSticky: boolean) => void;