Expand / Collapse Widget Examples

Unlike the first example, this panel is initially expanded. The button above reflects that via aria-expanded="true", and there is no hidden attribute on this container.

You can still toggle it closed and reopen it. Buttons are keyboard-accessible by default (Enter/Space).