ListGroupActivator

Data Display
stable

Internal wrapper component that registers the nested group activator context via useNestedGroupActivator. Consumed internally by OrigamListGroup to wire the toggle header to the expand/collapse mechanism.

Structure

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

Anatomy of OrigamListGroupActivatorSchematic showing the activator wrapper element wrapping the header slot content. 1 #default slot — ListItem / custom activator header 2
Anatomy of <origam-list-group-activator> — a transparent wrapper ① rendered as the tag prop value (default: <div>). The default slot ② holds the activator header content (typically a ListItem).
1.origam-list-group-activator
Root element. Rendered via — defaults to
. Registers the nested group activator context via useNestedGroupActivator() on mount.
2#default slot
Default slot content — the interactive header element (usually an OrigamListItem) that the user clicks to expand/collapse the ListGroup.

API

Props

Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.

tag
string
'div'
HTML element rendered at the root. Defaults to div; can be set to any valid HTML tag by the parent (e.g. header).

API

Slots

Emplacements de contenu exposés par ce composant.

#default
Content of the activator header — typically a ListItem with the group title and expand icon.

API

Membres exposés

Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.

<T extends object>(props: T, exclude?: string[]) => Partial<T>
Utility to forward a filtered subset of props to child components.
Ref<string>
Reactive CSS string generated by useStyle.
string
Unique style-sheet ID for this instance.
() => void
Injects the computed style sheet into the document.
() => void
Removes the injected style sheet.
Ref<boolean>
True once the style sheet has been injected into the DOM.

Inclusion

Accessibilité

Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.

Notes

  • OrigamListGroupActivator is a context-only wrapper — it has no ARIA role or keyboard contract of its own. The slotted content (OrigamListItem) owns the interactive surface with the correct aria-expanded and role="button" attributes.
  • The component renders a plain <div> (or tag prop value) with no ARIA attributes added at this level. It is transparent to the accessibility tree.

Usage

Exemples

Extraits de code prêts à coller dans vos templates.

Implicit usage via ListGroup

vue