UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

109 lines (108 loc) 3.24 kB
import { RendererElement } from 'vue'; export declare const CAlert: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ /** * Sets the `aria-label` of the dismissible close button. * * @since 5.10.0 */ ariaCloseLabel: { type: StringConstructor; default: string; }; /** * Sets the color context of the component to one of CoreUI’s themed colors. * * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light' */ color: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Optionally add a close button to alert and allow it to self dismisss. */ dismissible: BooleanConstructor; /** * Set whether the alert fades in and out when it is shown and hidden. Set to `false` to make it appear and disappear without a fade animation. * * @since 5.10.0 */ transition: { type: BooleanConstructor; default: boolean; }; /** * Set the alert variant to a solid. * * @values 'solid' */ variant: { type: StringConstructor; validator: (value: string) => value is "solid"; }; /** * Toggle the visibility of alert component. */ visible: { type: BooleanConstructor; default: boolean; }; }>, () => import("vue").VNode<import("vue").RendererNode, RendererElement, { [key: string]: any; }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "closed")[], "close" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ /** * Sets the `aria-label` of the dismissible close button. * * @since 5.10.0 */ ariaCloseLabel: { type: StringConstructor; default: string; }; /** * Sets the color context of the component to one of CoreUI’s themed colors. * * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light' */ color: { type: StringConstructor; validator: (value: string) => boolean; }; /** * Optionally add a close button to alert and allow it to self dismisss. */ dismissible: BooleanConstructor; /** * Set whether the alert fades in and out when it is shown and hidden. Set to `false` to make it appear and disappear without a fade animation. * * @since 5.10.0 */ transition: { type: BooleanConstructor; default: boolean; }; /** * Set the alert variant to a solid. * * @values 'solid' */ variant: { type: StringConstructor; validator: (value: string) => value is "solid"; }; /** * Toggle the visibility of alert component. */ visible: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onClose?: ((...args: any[]) => any) | undefined; onClosed?: ((...args: any[]) => any) | undefined; }>, { transition: boolean; visible: boolean; dismissible: boolean; ariaCloseLabel: string; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;