Examples of native and scripted expand/collapse. Each widget is wrapped in an element with the "example" class and uses a content container with the "details" class.
Manage how your account behaves across the app. These options are powered by the built-in HTML details/summary elements.
Refine your search using the filters below.
An accordion is a set of vertically stacked items that expand to reveal content. When one item is opened, others close.
In this demo, opening one FAQ item closes the others in the same group for a cleaner experience.
Native <details> and <summary> provide built-in semantics. Styling enhances the presentation.
Tip: Press Ctrl+F (or Cmd+F on macOS) while focused on the page to toggle the filter panel in the second widget.