Switch
shadcn/uiA control that allows the user to toggle between checked and not checked.
Switch
Installation
Props
<Switch />
Name | Type | |
|---|---|---|
variant | string(default: default) | |
inputRef | React.Ref<HTMLInputElement> | |
onCheckedChange | (...args) => void | |
uncheckedValue | string | |
nativeButton | boolean | |
render | React.ReactElement |