@elacity-js/uikit
Version:
React / Material UI Design kit for Elacity project
13 lines (12 loc) • 379 B
TypeScript
interface StickyElementOptions<T extends HTMLElement> {
$el: T;
/**
* scroll position distance from top of the screen
* to make the sticky state transition
*
* 0 or undefined mean the top of the screen
*/
top?: number;
}
declare const _default: <T extends HTMLElement>({ $el, top }: StickyElementOptions<T>) => void;
export default _default;