npm.io
0.10.7 • Published 2 years ago

@govuk-react/details

Licence
MIT
Version
0.10.7
Deps
4
Size
19 kB
Vulns
0
Weekly
0

Details

Import

  import Details from '@govuk-react/details';

Make a page easier to scan by letting users reveal more detailed information only if they need it.

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