Examples of native and custom expand/collapse interactions.
An expand/collapse widget hides content until the user chooses to reveal it. The native HTML details element provides this behavior with built-in accessibility.
This section starts expanded. Toggle it to collapse.
Any HTML content can be placed inside.
This simple accordion ensures only one panel is open at a time.