Alert
llms.txtExample
Default Alert
Alert Description
Secondary Alert
Alert Description
Preset Alerts
Warning alert
Alert DescriptionError alert
Alert DescriptionSuccess alert
Alert DescriptionInfo alert
Alert DescriptionUsage
<Alert title="Alert Title" type="info"> <span>Alert Description</span> </Alert>
API Reference
Alert
A component for displaying important messages to the user.
Property Type Description
title
string
The title text of the alert. Default: —
type
enum
The type of alert, which determines the icon and default color scheme. Default: —
variant
string
The visual variant of the alert. Default: —
children required
Snippet
The content to display inside the alert.
class
string
Additional CSS classes to apply. Default: —
ref $bindable
HTMLDivElement
The underlying DOM element. Default: —
Property
title
type
variant
children
class
ref