Expand/Collapse Examples

Three widgets demonstrate toggling content. Each widget is wrapped in an element with the class example, and the controlled content container uses the class details.

Basic Toggle (Button + ARIA)

A button toggles a content region. The content container has class details.

Native HTML Details/Summary

Uses the built-in <details>/<summary> element. The visible content inside is wrapped in a container with class details.

Product specifications

Below are the product specs. Using native elements provides built-in keyboard and accessibility support.

Dimensions
120 × 75 × 9 mm
Weight
160 g
Battery
4000 mAh

Accordion (Single-open group)

An accordion where only one section opens at a time. Each section's controlled content container uses the class details.