A control that allows the user to toggle between checked and not checked states.
Live Preview
Installation
npx kinetic-ui-cli@latest add switchUsage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { Switch } from "@/components/ui/switch";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { Switch } from "@/components/ui/switch";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<Switch
/>
</div>
);
}