Table
A Table used to organize and display data efficiently. It renders a `<table>` element by default.
React
Blueprint exports the following components for rendering menus:
import { Table, Thead, Tbody, Tfoot, Th, Tr, Td, TableCaption,} from '@hover/blueprint';
Table
The table wrapper (required)Thead
The header rows wrapperTbody
The content rows wrapperTfoot
The footer rows wrapperTr
A table rowTd
A table cell. Must be a direct child of aTr
.Th
A 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
colSpan
prop spans accross columns - the
rowSpan
prop 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.