ComponentsSwitch
Switch
The Switch is an interactive, binary component designed for your applications. It offers a clear, visual interface for users to enable or disable specific settings, features, or functionalities.
The Switch is an interactive, binary component designed for your applications. It offers a clear, visual interface for users to enable or disable specific settings, features, or functionalities.
Prop | Type | Default |
---|---|---|
asChild | boolean | |
checked | boolean | |
defaultChecked | boolean | |
dir | 'ltr' | 'rtl' | |
disabled | boolean | |
form | string | |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
ids | Partial<{
root: string
input: string
control: string
label: string
thumb: string
}> | |
invalid | boolean | |
label | string | |
name | string | |
onCheckedChange | (details: CheckedChangeDetails) => void | |
readOnly | boolean | |
required | boolean | |
value | string | number |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |