SwitchProps
Represents the props of the KendoReact Switch component.
Name | Type | Default | Description |
---|---|---|---|
accessKey? |
|
Specifies the | |
ariaDescribedBy? |
|
Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message. | |
ariaLabel? |
|
The accessible label of the component. | |
ariaLabelledBy? |
|
Identifies the element(s) which will label the component. | |
checked? |
|
Sets the current value of the Switch (see example). | |
className? |
|
Sets the | |
defaultChecked? |
|
Sets the value of the Switch when it is initially displayed (see example). | |
defaultValue? |
|
Sets the default value of the Switch. | |
dir? |
|
Sets the | |
disabled? |
|
Disables the Switch when set to | |
id? |
|
Sets the | |
name? |
|
Specifies the This property is part of the FormComponentProps interface. | |
offLabel? |
|
Changes the Off label(see example). | |
onBlur? |
|
Fires each time the Switch gets blurred. | |
onChange? |
|
Fires each time the user selects a new value (see example). | |
onFocus? |
|
Fires each time the Switch component gets focused. | |
onLabel? |
|
Changes the On label (see example). | |
required? |
|
Specifies if This property is part of the FormComponentProps interface. | |
size? |
|
|
Configures the The available options are:
|
tabIndex? |
|
Specifies the | |
thumbRounded? |
|
|
Configures the The available options are:
|
trackRounded? |
|
|
Configures the The available options are:
|
valid? |
|
Overrides the validity state of the component.
If This property is part of the FormComponentProps interface. | |
validationMessage? |
|
Controls the form error message of the component. If set to an empty string, no error will be thrown. This property is part of the FormComponentProps interface. | |
validityStyles? |
|
If set to This property is part of the FormComponentProps interface. | |
value? |
|
Sets the value of the Switch. It can either be of the primitive (string, number, boolean) or of the complex (array) type. |