Switch
A switch component that toggles between enabled and disabled states.
1Installation
npm i elementra-ui
2Add Components Using CLI
npx elementra-ui add
Select components using the up/down arrow keys. Press spacebar to select multiple components, then press enter to add them to your src folder.
3Basic Usage
Import the Switch component and use it in your application.
import { Switch } from "@/components/ui/switch";
export default function BasicSwitch() {
return (
<Switch
label="Toggle feature"
defaultChecked={true}
/>
);
}