WindowItem
A single pane inside an OrigamWindow. Holds the content for one window value and animates in/out with the window transition (per-item override possible).
Structure
Anatomie
Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.
<origam-window-item> — the parent Window ① mounts only the active item ② and animates it with the window transition.- 1.origam-window (parent)
- Parent OrigamWindow. Provides the group context and the active value.
- 2.origam-window-item
- The pane itself (flex: 1 1 auto). Rendered only while active; transitions via the x/y transition tokens.
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- transitionboolean | string
- Overrides the parent Window transition for this pane when entering in the forward direction.
- reverseTransitionboolean | string
- Overrides the transition used when this pane enters in the reverse direction.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- eagerboolean
- valueany
- Identifier for this pane. The parent Window shows the item whose value matches its modelValue.
- disabledbooleanfalse
- Prevents this pane from becoming active via navigation.
- selectedClassstring
- Class applied to the item while it is the active pane.
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Pane content shown while this item is active.
API
Emits
Événements émis par ce composant.
- @group:selected{ value: boolean }
- Fired by the group machinery when this item becomes the active pane.
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 a child component.
- Ref<string>
- Reactive scoped CSS string generated for this item.
- 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.
Personnalisation
Variables CSS
Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.
- Duration of the horizontal slide transition.
- Easing curve of the horizontal slide transition.
- Duration of the vertical slide transition.
- Easing curve of the vertical slide transition.
Inclusion
Accessibilité
Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.
Notes
Fondation
Design tokens
Extrait des tokens de ce composant — les variables --origam-<composant>---<propriété>, déclarées dans sa feuille de tokens tenue à la main, sans étape de build.
- durationvar(--origam-motion__duration---slow)
- Horizontal transition duration.
- durationvar(--origam-motion__duration---slow)
- Vertical transition duration.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Sous-partie interne : elle est injectée par son composant parent et ne peut pas se rendre seule. Voir la fiche du composant parent pour un exemple vivant.
Rendu de l’aperçu en cours…
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.