import type { InfoOutlinedProps } from '@lowes-tech/bds-icons/InfoOutlined'; import * as React from 'react'; import type { TooltipProps } from '../../Tooltip'; import type { TooltipPopperProps } from '../../TooltipPopper'; import type { BackyardBaseProps } from '../../utils/typings/BackyardProps'; import { BDSForwardRef } from '../../utils/typings/BDSComponentProps'; /** * Corresponding html '' tag of the Backyard Design System's table component. * Used with TableRow, TableCell and TableBody to build out the body of a table. * Used with TableRow, and TableHead to build out the header of a table. * * ex. * * * * Column 1 * Column 2 * Column 3 * * * * ... * * ex 2. *
* * * Header 1 * Data 1 * * * * Header 2 * * Data 2 * * *
*/ declare const TableHeader: BDSForwardRef; declare type TableHeaderRef = HTMLTableHeaderCellElement; interface TableHeaderProps extends BackyardBaseProps { /** * Column width in percentage. * When set it controls the width of its parent column and by proxy all cells that are in the same table column. * If left unset defaults to auto and distributes the width of the of the table evenly among all of the table's columns. */ width?: number; /** * When passed adds an Info icon to the cell that when hovered displays to passed string in a tooltip. */ info?: string; /** * String to be placed into the TableCell as content */ children?: React.ReactNode; /** * Overwrite props for the tooltips */ tooltipProps?: React.PropsWithRef; /** * Overwrite props for the tooltipPoppers */ popoverProps?: Partial>; /** * Overwrite props for the tooltipPoppers * * Alias of `popoverProps` */ popperProps?: Partial>; /** * Overwrite props for the info icons */ infoProps?: React.PropsWithRef; } export { TableHeader }; export type { TableHeaderProps, TableHeaderRef }; export default TableHeader;