Collapsible
Expand/collapse section using native <details>.
Live
Example
ui.Collapsible(
ui.CollapsibleConfig{Summary: "What is this?"},
render.Text("Body shown when expanded."),
)Static preview
This is a read-only export. Run the app locally for full interactivity — live search, demos, and server-driven islands need the Go server.
A collapsible section using native <details>. The browser handles open/close — the runtime adds keyboard support via data-fui-disclosure.
Yes. Escape to close, aria-expanded mirroring, all handled automatically.
ui.Collapsible(
ui.CollapsibleConfig{Summary: "What is this?"},
render.Text("Body shown when expanded."),
)