@govuk-react-bjss-pttg/details
v0.10.7
Published
Renders a styled details element along with summary from prop and children rendered as contents.
Downloads
1
Keywords
Readme
Details
Import
import Details from '@govuk-react-bjss-pttg/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/
Properties
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