UNPKG

gestalt

Version:

A set of React UI components which enforce Pinterest's design language

36 lines (35 loc) 989 B
import { ReactNode } from 'react'; type Props = { /** * The content of the table cell. */ children: ReactNode; /** * `colSpan` defines the number of columns a cell should span. */ colSpan?: number; /** * `rowSpan` defines the number of rows a cell should span. */ rowSpan?: number; /** * Private prop required for sticky columns */ shouldBeSticky?: boolean; /** * Private prop required for sticky columns */ shouldHaveShadow?: boolean; /** * Private prop required for sticky columns */ previousTotalWidth?: number; }; /** * Use [Table.Cell](https://gestalt.pinterest.systems/web/table#Table.Cell) for individual table values. */ declare function TableCell({ children, colSpan, rowSpan, shouldBeSticky, previousTotalWidth, shouldHaveShadow, }: Props): import("react/jsx-runtime").JSX.Element; declare namespace TableCell { var displayName: string; } export default TableCell;