Collapsible

Expand/collapse section using native <details>.

Live
What is this?

A collapsible section using native <details>. The browser handles open/close — the runtime adds keyboard support via data-fui-disclosure.

Is it accessible?

Yes. Escape to close, aria-expanded mirroring, all handled automatically.

Example

ui.Collapsible(
    ui.CollapsibleConfig{Summary: "What is this?"},
    render.Text("Body shown when expanded."),
)