Disclosure
A card that opens to show more: a native <details>, so it works without JavaScript. Open, it takes the accent edge
that page headers have, and it grows open smoothly where browsers can animate to auto.
Disclosure(props: DisclosureProps): ElementProps
- titlerequired
ComponentChildren - descriptionoptional
ComponentChildren A line under the title.
- iconoptional
ComponentChildren A small icon, shown in a tile that fills with the accent colour when open.
- nameoptional
string Disclosures with the same
nameform an accordion: opening one closes the others.- openoptional
boolean - classoptional
string - childrenrequired
ComponentChildren
design-system is a Ben Hodgson projectGitHub