Switch is used to toggle between two states on and off. You can commonly used in settings panel, forms and any other place where a user needs to enable or disable feature.
import Switch from "@radui/ui/Switch";
const SwitchExample = () => (
<div>
<Switch />
</div>
)
Prop | Type | Default | Description |
---|---|---|---|
color | string | null | Accent Color of the switch |