Toggle
shadcn/uiA two-state button that can be either on or off.
Toggle
Installation
Props
<Toggle />
Name | Type | |
|---|---|---|
variant | string(default: default) | |
pressed | boolean | |
defaultPressed | boolean | |
onPressedChange | (...args) => void | |
nativeButton | boolean | |
render | React.ReactElement |