{"name":"collapsible","title":"Collapsible","description":"","kind":"component","category":"display","status":"beta","props":{"open":{"type":"boolean","model":true,"default":false,"description":"Open or closed. React: open / defaultOpen / onOpenChange; Vue: v-model:open; Svelte: bind:open."},"disabled":{"type":"boolean","default":false,"part":"trigger","description":"The trigger does nothing and dims."},"variant":{"type":"enum","values":["row","inline","section"],"default":"row","description":"row: the whole row is the trigger (44px, caret in a 28px box). inline: a text-sized header on the text line that bleeds 6px. section: a 28px quiet header (12px/500, ink-2, ink on hover)."},"caret":{"type":"enum","values":["start","end","none"],"default":"end","description":"Where the caret sits in the trigger. Sections put it first."},"label":{"type":"node","description":"The trigger's content: text, or markup (React node, Vue slot `label`, Svelte snippet)."},"meta":{"type":"string","description":"Trailing muted note in the trigger."},"detail":{"type":"string","description":"Plain detail text shown in the region, inset like the trigger."},"keepLayout":{"type":"boolean","default":false,"attr":"data-keep-layout","description":"A closed region stays laid out at zero height (invisible, out of the tab order) instead of display: none, so entrances inside it do not replay when it reopens (thinking-state, tool-chips)."},"triggerClass":{"type":"string","description":"A class added to the trigger (a host's hook)."},"labelClass":{"type":"string","description":"A class added to the label part (a host's hook)."}},"playground":{"name":"Playground","props":{"variant":"row","label":"Build","meta":"48s","detail":"Installed 1,284 packages, compiled 312 modules and uploaded 14.2 MB of assets for dpl_7f3a9c."},"width":320},"exampleFiles":[{"file":"build-step","title":"Deploy step with details"},{"file":"build-warnings","title":"Warnings under a message"},{"file":"sidebar-section","title":"Sidebar section"},{"file":"locked-for-viewers","title":"Locked for viewers"}],"worstCase":[{"name":"Long label, long meta","width":280,"props":{"variant":"row","open":true,"label":"Reconcile the supplier invoices for the third quarter against the purchase orders and flag mismatches","meta":"12,480 steps","detail":"averyveryveryveryveryveryveryveryverylongunbreakablesupplierreference@example-supplier-domain.com was not found in the ledger."}},{"name":"One letter, inline","width":280,"props":{"variant":"inline","label":"A","detail":"B"}},{"name":"Right-to-left text","width":280,"props":{"variant":"section","caret":"start","open":true,"label":"المحادثات الأخيرة في مساحة العمل","detail":"أفكار قائمة الصيف · متابعة المورد"}},{"name":"No detail","width":280,"props":{"variant":"inline","label":"Thought for 2m 41s"}}],"anatomy":[{"part":"root","element":"div","description":"data-state=open|closed from the engine. Hosts add their own class and restyle the parts by data-slot. The trigger and region are its direct children, or descendants in no nested collapsible (a trigger in a footer under the region); a host whose trigger is another component's button uses the engine's Trigger anywhere inside the Root (recommendation-card)."},{"part":"trigger","element":"button","description":"Direct child of the root. aria-expanded, aria-controls, data-state=open|closed, data-disabled from the engine."},{"part":"caret","element":"span","optional":true,"description":"Right caret (ph caret-right) that turns down 90deg while open; first or last child of the trigger; carries kbd-instant"},{"part":"label","element":"span","description":"The trigger's content. Any markup may go inside. In a row it wraps (the caret, the meta and its first line share a 24px first line); in inline and section it truncates, with a title while cut."},{"part":"meta","element":"span","optional":true,"description":"Trailing muted note (step count, duration)"},{"part":"content","element":"div","description":"The region. Direct child of the root; carries kbd-instant. Closed: data-state=closed and hidden (out of the layout and the tab order). Settled open: no data-state."},{"part":"body","element":"div","description":"The one child of the region; it clips while the region moves. Put the host's content here."},{"part":"text","element":"p","optional":true,"description":"Plain detail text, inset to line up with the trigger's label"}],"slots":{"default":"The region's content, after the detail text.","label":"Vue: the trigger's content when it is more than text (React: label as a node; Svelte: label as a snippet)."},"events":{"openChange":"(open: boolean)"},"states":["hover","press","focus-visible","open","disabled"],"tokens":["color.ink","color.ink-2","color.ink-3","color.hover","color.hover-2","radius.control","text.xs","text.sm","duration.fast","duration.base","duration.move","duration.reveal","easing.out-strong"],"a11y":{"role":"button (aria-expanded, aria-controls) + region","keyboard":["Tab reaches the trigger; nothing inside a closed region is reachable","Enter / Space on the trigger toggle the region; the change is instant (no reveal, no caret turn)","A disabled trigger stays in the tab order and ignores Enter, Space and clicks"],"notes":["The trigger is a real button; its whole content is the accessible name, so keep the label short or give it aria-label.","The region leaves the layout (hidden) once the exit has played, which also takes it out of the accessibility tree."]},"motion":["reveal: grid-template-rows 0fr -> 1fr over duration.reveal easing.out-strong, opacity over duration.base ease; rows below move with it","exit: the same transition back; the engine waits for the fndn-collapsible-exit hold (duration.reveal) before it hides the region","caret: rotate 0 -> 90deg (right-to-left 180 -> 90deg) over duration.move easing.out-strong","keyboard: region and caret are instant (kbd-instant)","first paint: nothing plays"]}