Alert
Light
light
is default variant for alert.
Use color
prop to change the alert color.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Filled
You can use variant="fill"
to create alert with filled background.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Outlined
You can use variant="outline"
to create outlined alert.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Icons
You can use icon
prop to render icon in alert.
Use append-icon
prop to render icon after default slot.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Tiramisu gingerbread halvah powder gummi bears. Apple pie brownie apple pie biscuit chocolate cake. Pudding sweet muffin lollipop candy fruitcake.
Dismissible
Use dismissible
prop to create dismissible alert.
You can customize close icon using append-icon
prop.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
Fruitcake I love liquorice apple pie croissant.
v-model support
Alert also supports v-model
to show and hide alert based on model value.
Fruitcake I love liquorice apple pie croissant.
API
Alert
dismissible : boolean
Make alert dismissible using this prop. Adds close icon as appended icon.
modelValue : boolean
Hide/Show alert based on v-model value
color : ColorProp
variant : LayerVariant
states : boolean
Interaction states like hover & active
icon : ConfigurableValue
prepend icon
appendIcon : ConfigurableValue
append (close) icon