ITabProps
interface
Navigation
Props for <OrigamTab> — a single registered tab inside an <OrigamTabs> tablist. Supports optional leading icon and trailing appendIcon. ARIA wiring (role=tab, aria-selected, tabindex) is computed automatically.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- tagstring
- HTML tag rendered as the tab root element.
- textstring
- variantTTabVariant
- appendIconTIcon
- Optional trailing icon rendered after the label text.
- iconTIcon
- Optional leading icon rendered before the label text.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Tab with leading icon