Collapse

Expandable area. The trigger is a real button — a clickable div does not take focus, does not respond to Enter or Space, and exposes no role to screen readers.

Closed and open

The initial state comes from the server, so it does not flicker on load.

@components.Collapse(components.CollapseProps{ID: "c1", Title: "Details"}) { <p>body</p> }