The Table component is used to display tabular data in rows and columns. It accepts a data array and uses Table.Column components to define the structure. You can compose the table with other components (like Text or Code) inside the data objects or via the render prop on columns.
import { Table } from 'components'
const data = [
{ property: 'type', description: 'Content type', type: 'secondary | warning', default: '-' },
{ property: 'Component', description: 'DOM element to use', type: 'string', default: '-' },
{ property: 'bold', description: 'Bold style', type: 'boolean', default: 'true' },
]
const MyTable = () => (
<Table data={data}>
<Table.Column prop="property" label="property" />
<Table.Column prop="description" label="description" />
<Table.Column prop="type" label="type" />
<Table.Column prop="default" label="default" />
</Table>
)