UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

25 lines (24 loc) 773 B
import { ReactElement } from 'react'; import { ComposableCell } from './Cell'; import { ComposableWithRef, Column, NativeTableSection, RenderProps } from '../types'; interface HeadRenderProps { props: { width: number | string; className: string; sorting: boolean; sortable: boolean; sticky: boolean; header: boolean; onClick?: () => void; }; column: Column; key: string; suffix: ReactElement; } declare type Props = RenderProps<NativeTableSection, HeadRenderProps>; interface Composites { Cell?: ComposableCell; } export declare type ComposableThead = ComposableWithRef<HTMLTableSectionElement, Props, Composites>; declare const ForwardedThead: ComposableThead; export default ForwardedThead;