Skip to content

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 { AxCollapsibleComponent, AxCollapsibleTriggerDirective } from '@axisui-ng/data';
<ax-collapsible [(open)]="showDetails">
<button axCollapsibleTrigger>Details</button>
<div>Extended content shown when open.</div>
</ax-collapsible>
InputTypeDefaultNotes
openmodel<boolean>falseTwo-way open state.
MarkerKindNotes
axCollapsibleTriggerDirective (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.

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.

Interactive examples live in Storybook under Data / Collapsible. Run pnpm storybook to explore them.