import * as React from 'react';
import type { InfoOutlinedProps } from '@lowes-tech/bds-icons/InfoOutlined';
import type { TooltipProps } from '../../Tooltip';
import type { TooltipPopperProps } from '../../TooltipPopper';
import type { BackyardBaseProps } from '../../utils/typings/BackyardProps';
import type { BDSForwardRef } from '../../utils/typings/BDSComponentProps';
/**
* Corresponding html '
' tag of the Backyard Design System's table component.
* Used with TableRow, TableHeader and TableBody to build out the body of a table.
*
* ex.
*
*
*
* Column 1
* Column 2
* Column 3
*
*
*
*
* Data 1.1
* Data 1.2
* Data 1.3
*
*
* Data 2.1
* ...
*
* ex.
*
*
*
* Header 1
* Data 1
*
*
* Header 2
* Data 2
*
*
*
*
* ex.
*
*
* Header 1
* Data 1
*
*
* Header 2
* Data 2
*
*
*/
declare const TableCell: BDSForwardRef;
declare type TableCellRef = HTMLTableCellElement;
interface TableCellProps 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, Link or Icon 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 { TableCell };
export type { TableCellProps, TableCellRef };
export default TableCell;
|