@govuk-react-bjss-pttg/table
v0.10.7
Published
A styled table supporting a 'construction kit' approach and rendering children as constituent parts.
Downloads
2
Keywords
Readme
Table
Import
import Table from '@govuk-react-bjss-pttg/table';
Use the table component to make information easier to compare and scan for users.
- https://govuk-react.github.io/govuk-react/?path=/docs/table
- https://design-system.service.gov.uk/components/table/
Properties
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
body
| | undefined
| ReactNode | Table body rows and cells (for backward compatibility)
caption
| | undefined
| string | Table caption title
children
| | undefined
| ReactNode | Table body rows and cells (recommended way)
head
| | undefined
| ReactNode | Table header rows and cells