Alert
Alert displays a message to the user. Bring your own icons and customize styling as needed.
Alert displays a message to the user. Bring your own icons and customize styling as needed.
Alert is a standalone component.
The main Alert component. All props are related to its type and appearance.
| Alert Props | Type | Description |
|---|---|---|
outline | boolean | Adds an outline style to the alert. |
dash | boolean | Adds a dashed outline to the alert. |
soft | boolean | Adds a soft background to the alert. |
type | string | Sets the alert type to one of the below props. |
| info | boolean | Shortcut for |
| success | boolean | Shortcut for |
| warning | boolean | Shortcut for |
| error | boolean | Shortcut for |
orientation | string | Sets the orientation of the alert to one of the below props. |
| vertical | boolean | Shortcut for |
| horizontal | boolean | Shortcut for |
| Alert Slots | Description |
|---|---|
default | The default slot for Alert content. Place icons, text, buttons, etc. here. |
Alert's type conveys meaning through color.
You can supply your own close button to dismiss the alert.
Example with a title and description using Flex and Text.