gestalt
Version:
A set of React UI components which enforce Pinterest's design language
24 lines (23 loc) • 1.1 kB
TypeScript
import { ReactNode } from 'react';
type Props = {
/**
* Must be an instance of Table.Row. See the [Subcomponent section](https://gestalt.pinterest.systems/web/table#Subcomponents) to learn more.
*/
children: ReactNode;
/**
* Display `visuallyHidden` ensures the component is visually hidden but still is read by screen readers.
*/
display?: 'tableHeaderGroup' | 'visuallyHidden';
/**
* If true, the table header will be sticky and the table body will be scrollable. See the [sticky Header](https://gestalt.pinterest.systems/web/table#Sticky-header-and-footer) and the [sticky header and columns](https://gestalt.pinterest.systems/web/table#Sticky-header-and-sticky-columns) variants for details.
*/
sticky?: boolean;
};
/**
* Use [Table.Header](https://gestalt.pinterest.systems/web/table#Table.Header) to group the header content in Table.
*/
declare function TableHeader({ children, display, sticky, }: Props): import("react/jsx-runtime").JSX.Element;
declare namespace TableHeader {
var displayName: string;
}
export default TableHeader;