For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.4.0/en/components/collapsible.md.

Collapsible

Uses the native details element to contain secondary explanation while preserving a clear label, state, and no-script fallback.

Live preview
Why this permission is needed
The folder is read only until access is approved.

Usage

<details class="collapsible" open>
  <summary>Why this permission is needed</summary><div data-collapsible-content>The folder is read only until access is approved.</div>
</details>

Contract

SurfaceValue
Root selectordetails.collapsible
Native root<details>
Statesopen, closed, disabled
Eventstoggle
Methods—

Product boundary

Collapsible is for supplemental content. Never hide required fields, errors, or primary actions inside it. Use Accordion when several sections need coordinated exclusivity.

The component publishes a reusable interaction boundary only. Data fetching, persistence, permission, trusted content, and business entities remain host-owned.

Accessibility

The summary retains native keyboard behavior and visible focus. Disabled state blocks pointer and keyboard use, and collapsing never changes reading order.