Components
Loading preview...
// demo.tsx
import Switch from '@/components/ui/indevui-switch';
import { BellRing, MicOff } from 'lucide-react';
function SwitchDemo() {
return (
<div className="w-full max-w-sm space-y-6 rounded-md border p-6">
<div className="flex items-center justify-between space-x-2">
<label htmlFor="notifications" className="flex flex-col space-y-1">
<span className="font-medium">Push Notifications</span>
<span className="text-sm text-muted-foreground">Receive updates on new features.</span>
</label>
<Switch id="notifications" />
</div>
<div className="flex items-center justify-between space-x-2">
<label htmlFor="microphone" className="font-medium text-foreground">
Microphone
</label>
<Switch id="microphone" defaultChecked />
</div>
<div className="flex items-center justify-between space-x-2">
<label htmlFor="airplane-mode" className="font-medium text-foreground opacity-50">
Airplane Mode
</label>
<Switch id="airplane-mode" disabled />
</div>
</div>
);
}
export { SwitchDemo as DemoOne };