Alert 
Displays important alert messages.
Basic usage 
Display information that needs attention, suitable for brief warning prompts.
Types 
There are four types of warnings: info, success, warning, and error. which has no icon by default.
Effects 
Card provide five different themes: dark、light、plain、up and down. Using effect to change, default is up.
Customizable close button 
Customize the close button as texts or other symbols.
With icon 
Displaying an icon improves readability.
With description 
Besides the required title attribute, you can add a description attribute to help you describe the alert with more details. Description can only store text string, and it will word wrap automatically.
This is alert description.
This is alert description.
With icon and description 
This is an example with both icon and description.
This is alert description.
This is alert description.
Sizes 
Besides default size, tu-alert component provides three additional sizes for you to choose among different scenarios. Use attribute size to set additional sizes with mini, small, large.
Alert API 
Alert Attributes 
| Name | Description | Type | Default | 
|---|---|---|---|
| title | The title of alert | String | - | 
| type | The type of alert | String | - | 
| description | Descriptive text | String | — | 
| closable | Whether alert can be dismissed | Boolean | true | 
| center | Whether content is placed in the center | Boolean | false | 
| close-text | Customized close button text | String | - | 
| show-icon | Whether a type icon is displayed | Boolean | false | 
| effect | The effect of alert | String | up | 
| size | The size of alert | String | medium | 
Alert Events 
| Name | Description | Type | 
|---|---|---|
| close | Trigger when alert is closed | Function | 
Alert Slots 
| Name | Description | 
|---|---|
| default | Content of the alert description | 
| title | Content of the alert title |