ILabelProps
interface
Form & Input
Props for <OrigamLabel> — the accessible label component used by form fields. Supports floating labels, required indicators, custom tag, and the full color, border, rounded, spacing surface.
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.
- textstring
- Label text content. Overridden by the default slot.
- floatingboolean
- Activates the floating label style, typically moving the label above the input on focus or when a value is present.
- requiredboolean
- Appends a required indicator (asterisk) and sets the aria-required attribute on the label.
- namestring
- Associates the label with a form control by name (rendered as a for attribute).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Floating required label