IAlertProps
interface
Component Props
Full props contract for <OrigamAlert> — closable banner with optional icon, title, text, v-model visibility and the full design surface (color, border, spacing, elevation, position).
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.
- closableboolean
- Shows a close button on the alert. Triggers the click:close emit when pressed.
- closeIconTIcon
- Custom icon for the close button. Defaults to the DS close icon.
- closeLabelstring
- Accessible label for the close button (aria-label). Defaults to "Close".
- modelValueboolean
- Controls the visibility of the alert via v-model. When false the alert is hidden.
- titlestring
- Bold heading rendered above the alert body.
- textstring
- Body text of the alert. Rendered inside the default slot when the slot is not used.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Closable danger alert with v-model