UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

17 lines (16 loc) 455 B
import React from 'react'; export type TableStickyHeaderProps = { /** * 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, }: TableStickyHeaderProps) => { elementRef: React.RefObject<HTMLTableElement>; };