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/
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 |