Table
A Table used to organize and display data efficiently. It renders a <table> element by default.
| Gutter | Length | Sections |
|---|---|---|
| Group 1 | 190' | 7 |
| Group 2 | 14' | 1 |
| Group 3 | 4' | 4 |
| Total | 204' | 8 |
React
Hover Design System exports the following components for rendering menus:
import { Table, Thead, Tbody, Tfoot, Th, Tr, Td, TableCaption,} from '@hoverinc/design-system-react-web';
TableThe table wrapper (required)TheadThe header rows wrapperTbodyThe content rows wrapperTfootThe footer rows wrapperTrA table rowTdA table cell. Must be a direct child of aTr.ThA table header cell. Must be a direct child of aTr.
Usage
Example with nested columns and rows
Sometimes a title needs to apply to more than one column or row. The Td
component can be spanned accross rows and columns. (This is part of the html
<table/> props)
- the
colSpanprop spans accross columns - the
rowSpanprop spans accross rows
API
Table
variant default | striped | simple
The overall theming of the Table
colorScheme Scheme
Update only the colors of the table
size sm | md | lg
The size of the table font and padding
Td
isNumeric boolean
Aligns content to the right, like the spreadsheet convention.