Alert

A prominent message used to communicate important information, warnings, or status updates to the user.

Themes

Controlled state

Slots Example

Props

NameDefaultType
title*
-string

Main heading text of the alert

theme
-Theme

Color theme of the alert

variant
"subtle""subtle" | "outline"

Visual style of the alert container

description
-string

Optional supporting text shown below the title

dismissable
trueboolean

Whether the alert can be closed by the user

modelValue
trueboolean

Controls the visibility of the alert for dismissing or toggling it

Slots

SlotPayload
icon
-

Custom icon shown before the content

description
-

Custom description content

footer
-

Footer content shown at the bottom of the alert

Emit Events

EventPayload
update:modelValue
[value: boolean]

dismiss
any[]