@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
17 lines (16 loc) • 458 B
TypeScript
import React from 'react';
export type StickyTableHeaderProps = {
/**
* Makes the Table header sticky
* Default: false
*/
sticky?: boolean | 'css-position';
/**
* The offset from top in rem or em unit
* Default: false
*/
stickyOffset?: string | number;
};
export declare const useStickyHeader: ({ sticky, stickyOffset, }: StickyTableHeaderProps) => {
elementRef: React.MutableRefObject<HTMLTableElement>;
};