Vue Alert Component API

Alert API

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

On this page

CAlert

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

Props

PropertyDefaultType
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.

visibletrueboolean

Toggle the visibility of alert component.

Events

Event name
close

Callback fired when the component requests to be closed.

CAlertHeading

jsx
import { CAlertHeading } from '@coreui/vue-pro'
PropertyDefaultType
as'h4'string

Component used for the root node. Either a string to use a HTML element or a component.