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.

typescript

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.

closable
boolean
Shows a close button on the alert. Triggers the click:close emit when pressed.
closeIcon
TIcon
Custom icon for the close button. Defaults to the DS close icon.
closeLabel
string
Accessible label for the close button (aria-label). Defaults to "Close".
modelValue
boolean
Controls the visibility of the alert via v-model. When false the alert is hidden.
title
string
Bold heading rendered above the alert body.
text
string
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

vue