Switch
Renders a Switch.
Installation
CLI
Add component to your project.
npx @perceptui/cli@latest add switch
Import from @perceptui/ui
Note: If you have installed @perceptui/ui
package, then import Switch
from @perceptui/ui
.
import { Switch } from "@perceptui/ui";
API References
Prop | Type | Description | Default |
---|---|---|---|
className | string | className | _ |