Alert
Contextual feedback messages for user actions and system states.
Your profile settings have been updated successfully.
<Alert title="Changes saved"
description="Your profile settings have been updated successfully."
/> Installation
Usage
Examples
With Icon
Alert with a leading icon for added context.
Command + K now opens the quick search.
<Alert
icon={<IconCommand /}
title="Keyboard shortcut updated"
description="Command + K now opens the quick search."
/> Information
Informational alert with a blue accent tone.
Mono DS 1.2 includes new components and bug fixes.
<Alert
tone="info"
icon={<IconInformation /}
title="New version available"
description="Mono DS 1.2 includes new components and bug fixes."
/> Success
Confirms that an action completed successfully.
Your changes are now live on production.
<Alert
tone="success"
icon={<IconCheckmark /}
title="Deployment successful"
description="Your changes are now live on production."
/> Warning
Warns the user about an approaching issue.
You have used 90% of your monthly API quota.
<Alert
tone="warning"
icon={<IconWarning /}
title="Approaching usage limit"
description="You have used 90% of your monthly API quota."
/> Error
Signals a failed action or error state.
We could not process your card. Please update your billing details.
<Alert
tone="error"
icon={<IconClose /}
title="Payment failed"
description="We could not process your card."
/> With Close Button
Dismissible alert the user can close manually.
Press Cmd+Shift+P to open the command palette.
<Alert
icon={<IconCommand /}
title="Tip of the day"
description="Press Cmd+Shift+P to open the command palette."
closable
/> Title Only
Compact alert without a description.
<Alert
tone="success"
icon={<IconCheckmark /}
title="All systems operational"
/> With List
Alert listing multiple related issues.
- Email address is required
- Password must be at least 8 characters
- You must accept the terms of service
<Alert
tone="error"
icon={<IconClose /}
title="Form submission failed"
list={["Email is required", "Password too short", "Accept terms"]}
/> With Action
Alert with primary and secondary action buttons.
A new version of the CLI is ready to install.
<Alert
icon={<IconCommand /}
title="Update available"
description="A new version of the CLI is ready to install."
actions
/> Anatomy
- Alert - Root container with tone-based styling
- Icon - Optional leading icon matching the tone
- Title - Primary message, always visible
- Description - Optional supporting text
- Actions - Optional buttons for user response