- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Alert
A component for displaying important messages.
You are viewing Medusa docs.
Was this example helpful?
Usage#
API Reference#
This component is based on the div element and supports all of its props
Prop | Type | Default |
---|---|---|
variant | "error" | "success" | "warning" | "info" | "info" |
dismissible | boolean | false |
Was this page helpful?
Examples#
Success Alert#
Data updated successfully!
Was this example helpful?
Warning Alert#
Be careful!
Was this example helpful?
Error Alert#
An error occured while updating data.
Was this example helpful?
Dismissable Alert#
You are viewing Medusa docs.
Was this example helpful?