UNPKG

@visa/nova-react

Version:

Visa Product Design System Nova React library. Compatible with React ^19.

28 lines (27 loc) 1.16 kB
import type { ComponentPropsWithRef, ElementType } from 'react'; export type TableProperties<ET extends ElementType = 'table'> = { /** Alt */ alternate?: boolean; /** Borders all around the table and cells */ border?: boolean; /** Borders only separating the rows */ borderBlock?: boolean; /** Key value pairs where text for the first column is bold. */ keyValue?: boolean; /** Subtle header */ subtle?: boolean; /** Padding size for the table */ tableSize?: 'large' | 'medium' | 'small'; } & Omit<ComponentPropsWithRef<ET>, 'border'>; /** * Grid that organizes information, enabling data interaction, manipulation, and criteria-based analysis using columns and rows. * @docs {@link https://design.visa.com/components/table/?code_library=react | See Docs} * @related table-wrapper, tbody, td, th, thead, tr * @vgar TODO * @wcag TODO */ declare const Table: { <ET extends ElementType = "table">({ alternate, border, borderBlock, className, keyValue, subtle, tableSize, ...remainingProps }: TableProperties<ET>): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default Table;