Accordion — Playground

px
Configure display and behavior options.
mode
appearance
size
State
html.html
<kui-accordion>
  <kui-accordion-item id="general" header="General settings">
    Configure display and behavior options.
  </kui-accordion-item>
  <kui-accordion-item id="notifications" header="Notifications">
    Manage push notifications and email digests.
  </kui-accordion-item>
  <kui-accordion-item id="security" header="Security">
    Account security parameters.
  </kui-accordion-item>
</kui-accordion>
Accordion events
  • No events yet.
NameTypeDefaultDescription
mode'exclusive' | 'multi''exclusive'Toggle mode. exclusive keeps a single section open at a time; multi allows any number of sections open simultaneously. A plain input, not two-way bindable. Falls back to defaults.accordion.mode.
appearance'default' | 'bordered' | 'ghost''default'Container and divider treatment: default uses bottom borders between items, bordered wraps each item in its own bordered block, ghost has no borders. A plain input; falls back to defaults.accordion.appearance.
size'xs' | 'sm' | 'md' | 'lg''md'Trigger height and text size. A plain input; falls back to defaults.accordion.size, then the global defaults.size.
expandedItemsstring[][]IDs of currently expanded items. The only mutable state of the accordion and the only two-way bindable one: use [(expandedItems)] or listen to (expandedItemsChange).
headerstring''kui-accordion-item: trigger label text.
idstringauto-generatedkui-accordion-item: stable ID used for state tracking and ARIA wiring. The generated default is numbered per Angular application, so server-rendered ids match the browser.
disabledbooleanfalsekui-accordion-item: removes the trigger from tab order and prevents toggling the section.
kuiAccordionIcon--Marker directive for an ng-template projected into a kui-accordion-item trigger, before the label text.
provideKuiDefaults({ accordion })(defaults: KuiComponentDefaults) => Provider-Sets size, mode, appearance and disclosureIcon for a subtree; provideKikitaUi({ defaults }) does it for the whole application.
KuiAccordionOptionsinterface-Shape of defaults.accordion. disclosureIcon takes precedence over defaults.icons.disclosure.
KuiAccordionMode / KuiAccordionAppearancetype aliases-Public unions of the mode and appearance values.

Inputs, provider defaults and tokens verified against @kikita-labs/ui v2.0.0 v2.0.0 public typings.