ithaka / pharos

JSTOR's design system
https://pharos.jstor.org
MIT License
123 stars 16 forks source link

Accordion: A component for collapsible information #184

Open daneah opened 3 years ago

daneah commented 3 years ago

The problem

Sometimes a page needs multiple, collapsible sections so that information can be digested incrementally or optionally.

The solution

An accordion component is available that allows providing a title / summary and the detailed content, probably as slots.

Additional information

It could be good semantics-wise to leverage the <summary> and <details> tags within the component.

daneah commented 11 months ago

https://x.com/jensimmons/status/1724885940416450810