# Vue Alert Component API

> Explore the API reference for the Vue Alert component and discover how to effectively utilize its props for customization.

## CAlert

```jsx
import { CAlert } from '@coreui/vue-pro'
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `color` | `Color` | - | Sets the color context of the component to one of CoreUI’s themed colors. |
| `dismissible` | `boolean` | - | Optionally add a close button to alert and allow it to self dismisss. |
| `variant` | `string` | - | Set the alert variant to a solid. |
| `visible` | `boolean` | `true` | Toggle the visibility of alert component. |

### Events

| Name | Description |
| --- | --- |
| `close` | Callback fired when the component requests to be closed. |

## CAlertHeading

```jsx
import { CAlertHeading } from '@coreui/vue-pro'
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `string` | `'h4'` | Component used for the root node. Either a string to use a HTML element or a component. |
