import { CToast } from '@coreui/react'
// or
import CToast from '@coreui/react/src/components/toast/CToast'
PropertyDescriptionTypeDefault
animationApply a CSS fade transition to the toast.booleantrue
autohideAuto hide the toast.booleantrue
classNameA string of all className you want applied to the base component.string-
colorSets the color context of the component to one of CoreUI’s themed colors.'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string-
delayDelay hiding the toast (ms).number5000
onCloseCallback fired when the component requests to be closed.(index: number) => void-
onShowCallback fired when the component requests to be shown.(index: number) => void-
visibleToggle the visibility of component.booleanfalse
On this page