import Details from '@govuk-react/details';
Make a page easier to scan by letting users reveal more detailed information only if they need it.
- https://govuk-react.github.io/govuk-react/?path=/docs/details
- https://design-system.service.gov.uk/components/details/
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children |
undefined |
ReactNode | The content that will be displayed when details are revealed | |
open |
undefined |
boolean | Flag to indicate whether to show component open by default | |
summary |
true | ReactNode | Text for the details summary link e.g. Help with nationality |