Default
Notification saved
default.tsx
<Alert title="Notification saved" state="info" dismissLabel="Close notification" icon={<FaInfoCircle />} dismissible>
This alert can be dismissed.
</Alert>The Alert component is used to display important messages to the user with support for different variants and actions.
<Alert title="Notification saved" state="info" dismissLabel="Close notification" icon={<FaInfoCircle />} dismissible>
This alert can be dismissed.
</Alert><Alert title="Primary theme" theme="primary">Primary message</Alert>
<Alert title="Secondary theme" theme="secondary">Secondary message</Alert>
<Alert title="Tertiary theme" theme="tertiary">Tertiary message</Alert>
<Alert title="Quaternary theme" theme="quaternary">Quaternary message</Alert><Alert title="Changes saved" state="success" icon={<FaCheckCircle />}>
Your profile is up to date.
</Alert>
<Alert title="Review recommended" state="warning" icon={<FaExclamationTriangle />}>
Two settings still use their default values.
</Alert>
<Alert title="Unable to save" state="error" icon={<FaExclamation />}>
Check the highlighted fields and try again.
</Alert>
<Alert title="Update available" state="info" icon={<FaInfoCircle />}>
A newer version is ready to install.
</Alert><Alert title="Solid" state="info" variant="solid">Strong emphasis</Alert>
<Alert title="Soft" state="info" variant="soft">Lower emphasis</Alert>
<Alert title="Outline" state="info" variant="outline">Lightweight treatment</Alert>
<Alert title="Glass" state="info" variant="glass">Translucent treatment</Alert>
<Alert title="Glass outline" state="info" variant="glassOutline">Transparent surface</Alert>