UNPKG

881 BTypeScriptView Raw
1import { ElementUIComponent, ElementUIComponentSize } from './component'
2
3/** Checkbox Component */
4export declare class ElCheckbox extends ElementUIComponent {
5 /** The form input value */
6 value: string | string[]
7
8 /** Value of the checkbox when used inside a checkbox-group */
9 label: string | number | boolean
10
11 /** Value of the checkbox if it's checked */
12 trueLabel: string | number
13
14 /** Value of the checkbox if it's not checked */
15 falseLabel: string | number
16
17 /** Native 'name' attribute */
18 name: string
19
20 /** Whether to add a border around Checkbox */
21 border: boolean
22
23 /** Size of the Checkbox, only works when border is true */
24 size: ElementUIComponentSize
25
26 /** If the checkbox is disabled */
27 disabled: boolean
28
29 /** If the checkbox is checked */
30 checked: boolean
31
32 /** Same as indeterminate in native checkbox */
33 indeterminate: boolean
34}