UNPKG

585 BTypeScriptView Raw
1import { ElementUIComponent } from './component'
2
3export type AlertType = 'success' | 'warning' | 'info' | 'error'
4
5/** Alert Component */
6export declare class ElAlert extends ElementUIComponent {
7 /** Title */
8 title: string
9
10 /** Component type */
11 type: AlertType
12
13 /** Descriptive text. Can also be passed with the default slot */
14 description: string
15
16 /** If closable or not */
17 closable: boolean
18
19 /** whether to center the text */
20 center: boolean
21
22 /** Customized close button text */
23 closeText: string
24
25 /** If a type icon is displayed */
26 showIcon: boolean
27}