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