import { CAlert } from '@coreui/react'
// or
import CAlert from '@coreui/react/src/components/alert/CAlert'
PropertyDescriptionTypeDefault
classNameA string of all className you want applied to the component.string-
colorSets the color context of the component to one of CoreUI’s themed colors.'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | stringprimary
dismissibleOptionally add a close button to alert and allow it to self dismiss.boolean-
onCloseCallback fired when the component requests to be closed.() => void-
variantSet the alert variant to a solid.string-
visibleToggle the visibility of component.booleantrue
On this page