# Vue Alert - Flowbite
#### Show contextual information to your users using alert elements based on Tailwind CSS
The alert component can be used to provide information to your users such as success or error messages, but also highlighted information complementing the normal flow of paragraphs and headers on a page.
## Default alert
Use the following examples of alert components to show messages as feedback to your users.
```vue
Info alert! Change a few things up and try submitting again.
Warning alert! Change a few things up and try submitting again.
Danger alert! Change a few things up and try submitting again.
Dark alert! Change a few things up and try submitting again.
Success alert! Change a few things up and try submitting again.
```
## Alerts with icon
You can also include a descriptive icon to complement the message inside the alert component with the following example.
```vue
Info alert! Change a few things up and try submitting again.
Warning alert! Change a few things up and try submitting again.
Danger alert! Change a few things up and try submitting again.
Dark alert! Change a few things up and try submitting again.
Success alert! Change a few things up and try submitting again.
```
## Bordered alerts
Use this example to add a border accent to the alert component instead of just a plain background.
```vue
Info alert! Change a few things up and try submitting again.
Warning alert! Change a few things up and try submitting again.
Danger alert! Change a few things up and try submitting again.
Dark alert! Change a few things up and try submitting again.
Success alert! Change a few things up and try submitting again.
```
## Border accent
Use this example to add a border accent on top of the alert component for further visual distinction.
```vue
Info alert! Change a few things up and try submitting again.
Warning alert! Change a few things up and try submitting again.
Info Danger alert! Change a few things up and try submitting again.
Info Dark alert! Change a few things up and try submitting again.
Success alert! Change a few things up and try submitting again.
```
## Alerts with list
Use this example to show a list and a description inside an alert component.
```vue
Ensure that these requirements are met:
At least 10 characters (and up to 100 characters)
At least one lowercase character
Inclusion of at least one special character, e.g., ! @ # ?
Ensure that these requirements are met:
At least 10 characters (and up to 100 characters)
At least one lowercase character
Inclusion of at least one special character, e.g., ! @ # ?
```
## Dismissing
Use the following alert elements that are also dismissable.
```vue
Info
Warning
Danger
Dark
Success
```
## Additional content
The following alert components can be used if you wish to disclose more information inside the element.
```vue
Info
This is a info alert
More info about this info alert goes here. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
```
## API
### Props
| Name | Values | Default |
|----------|-----------------------------------------------|---------|
| type | `info`, `danger`, `success`,`warning`, `dark` | `info` |
| closable | `boolean` | `false` |
| icon | `boolean` | `false` |
| border | `boolean` | `false` |
### Events
| Name | Description |
|-------|----------------------|
| close | Close button pressed |
### Slots
| Name | Description |
|------------|-------------------|
| default | alert content |
| close-icon | custom close icon |
| icon | custom icon |
| title | title content |