Properties
Name | Attribute | Type | Description |
---|---|---|---|
label | label |
|
Text label. |
data | data |
|
Data associated with the component. |
hint | hint |
|
Hint message to assist the user. |
error | error |
|
An error message to guide users to correct a mistake. |
checked | checked |
|
Indicator if the component is checked or not. |
disabled | disabled |
|
Indicator if the component is disabled. |
dir | dir |
|
Used to set the base direction of text for display |
lang | lang |
|
Used to identify the language of text content on the web |
Events
Name | Type | Description |
---|---|---|
value-change |
|
Dispatched when the switch checked state is changed. |
Slots
Name | Description |
---|---|
|
Used to define content that is displayed while async rendering is awaiting, or when renderLoading() is implicitly called |
|
Content to render inside the component. |
Theme Variables
Name | Description |
---|---|
|
Theme primary color. |
|
Theme primary hover color. |
|
Theme primary active color. |
|
Theme accent color. |
|
Theme accent hover color. |
|
Theme accent active color. |
|
Theme background color. |
|
Theme background hover color. |
|
Theme background active color. |
|
Theme font color. |
|
Theme disabled border color. |
|
Theme disabled background color. |
|
Theme disabled background color. |
|
Theme error border color. |
|
Theme hint font color. |
|
Theme inactive color. |
|
Theme inactive color. |
|
Theme font family. |
|
Theme font size. |
|
Theme font weight. |
|
Theme border radius. |
|
Theme border width. |
|
Theme box shadow. |
Component Variables
Name | Description |
---|---|
|
Label font color. |
|
Label font family. |
|
Label font size. |
|
Label font weight. |
|
Label left margin spacing. |
|
Hint text font color. |
|
Hint text font family. |
|
Hint text font size. |
|
Hint text font weight. |
|
Error text font color. |
|
Error text font family. |
|
Error text font size. |
|
Error text font weight. |
|
Track width. |
|
Track height. |
|
Track background color. |
|
Track border radius. |
|
Track inset margins. |
|
Knob height. |
|
Knob width. |
|
Knob background color. |
|
Knob box shadow. |
|
Knob hover box shadow. |
|
Track checked background color. |
|
Knob checked hover box shadow. |
|
Track disabled background color. |
|
Knob checked background color. |
|
Knob disabled background color.. |
|
Knob disabled hover box shadow. |