Collapsible
Collapsible
Section titled “Collapsible”<ax-collapsible> is a single disclosure: a projected [axCollapsibleTrigger] toggles a content
region. It’s CSS-only. For multiple coordinated sections, use
Accordion instead.
Import
Section titled “Import”import { AxCollapsibleComponent, AxCollapsibleTriggerDirective } from '@axisui-ng/data';<ax-collapsible [(open)]="showDetails"> <button axCollapsibleTrigger>Details</button> <div>Extended content shown when open.</div></ax-collapsible>Inputs & models
Section titled “Inputs & models”| Input | Type | Default | Notes |
|---|---|---|---|
open | model<boolean> | false | Two-way open state. |
Slots / marker directives
Section titled “Slots / marker directives”| Marker | Kind | Notes |
|---|---|---|
axCollapsibleTrigger | Directive (AxCollapsibleTriggerDirective) | Toggles open state; sets aria-expanded and aria-controls. Project a real focusable control (e.g. <button>). |
Unmarked projected content (after the trigger) is the expandable body.
Accessibility
Section titled “Accessibility”The trigger gets aria-expanded and aria-controls pointing at a role="region" content panel.
Closed panels are inert. Project a real focusable control (e.g. a <button>) as the trigger.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Data / Collapsible. Run pnpm storybook to explore them.