Expandable Widget Examples

Basic Expand/Collapse

Accordion with Resources

Initially Expanded Tips

To start a section expanded, add the is-open class to the container and set hidden to false. Keep the button state synchronized with aria-expanded="true".

Providing clear label changes like “Hide tips” improves usability and ensures keyboard and screen reader users understand the current state.