Tabs
Navigation
stable
WAI-ARIA-compliant tablist container that orchestrates a group of OrigamTab elements with optional matching OrigamTabPanels for content switching.
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- tagstring'div'
- Root HTML element. The component always injects role="tablist" on top of this.
- variantTTabVariant'default'
- Visual treatment of the tab strip. default uses the standard indicator; pills gives each tab a pill background; underline shows a bottom border.
- fixedbooleanfalse
- Distributes tab items with equal width across the full container (justify-evenly).
- centeredbooleanfalse
- Centers the tab strip within the container.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- directionTDirection'horizontal'
- Layout direction of the tab strip. Vertical switches aria-orientation accordingly.
- densityTDensity'default'
- Controls the padding density of each Tab element.
- roundedboolean | number | string | TRounded | null | undefined
- Border-radius token applied to the tab strip container.
- roundedTopRightboolean | number | string
- roundedTopLeftboolean | number | string
- roundedBottomLeftboolean | number | string
- roundedBottomRightboolean | number | string
- roundedStartStartboolean | number | string
- roundedStartEndboolean | number | string
- roundedEndStartboolean | number | string
- roundedEndEndboolean | number | string
- colorTColor
- Active tab indicator and text color.
- bgColorTColor
- Background color of the tab strip container.
- disabledboolean
- modelValueany
- Value of the currently selected tab. Bind with v-model.
- multipleboolean
- mandatorybooleantrue
- Ensures exactly one tab is always selected (WAI-ARIA tablist convention). Defaults to true.
- maxnumber
- selectedClassstring
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Tab items. Receives the group API (select, next, prev…) for programmatic navigation.
API
Emits
Événements émis par ce composant.
- @update:modelValueany
- Fired when the active tab changes. Bind with v-model.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Rendu de l’aperçu en cours…
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Basic tabs
Visual variants
Tabs with icons
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.