A component for rendering data tables.
npm install @crave/farmblocks-tableA component for rendering data tables.
> ### ⚠️ Legacy
>
> This package was completely rewritten in v6
> If you're looking for documentation of the old version, check:
``bash`
npm install @crave/farmblocks-table
This component works the same way as the default HTML table. It basically applies some style. To handle data mapping, we provide some helper hooks
`jsx
import { Table, THead, TBody, TR, TH, TD } from "@crave/farmblocks-table";
export default () => (
| Fruit | Price | |
|---|---|---|
| Apple | $ 0.50 | |
| Banana | $ 0.60 | |
| Cherry | $ 9,999.99 | |
| Coconut | $ 2.30 |
For more examples and details on the available props, read the docs.
MIT