Alert
Alerts keep users informed of important and sometimes time-sensitive changes.
Installation
Usage
Props
Alert
Extends View
props.
Prop | Type | Default | Description |
---|---|---|---|
variant | 'info' | 'error' | 'warning' | 'success' | 'emergency' | 'info' | Determines the color scheme and style of the alert. |
alertStyle | 'default' | 'no-header' | 'list' | 'slim' | 'no-icon' | 'default' | Controls the layout and appearance of the alert. |
title | string | - | The main heading text of the alert. |
description | AlertDescription | - | Content configuration for the alert body. |
showIcon | boolean | true | Controls the visibility of the alert icon. |
className | string | - | Additional CSS classes to apply to the alert. |
AlertDescription
Property | Type | Description |
---|---|---|
title | string | Optional title text for no-header and slim variants. |
body | string | Main content text of the alert. |
link | string | Optional link text to be displayed. |
messages | Array<AlertMessage> | Array of messages for list-style alerts. |
AlertMessage
Property | Type | Description |
---|---|---|
text | string | The main text content of the message. |
link | string | Optional link text within the message. |
suffix | string | Optional text to appear after the link. |