0.04K

A control that allows the user to toggle between checked and not checked.

import { Label } from '@/components/ui/label';
import { Switch } from '@/components/ui/switch';

<template>
  <div class="flex items-center gap-3">
    <Switch id="airplane-mode" />
    <Label @for="airplane-mode">Airplane Mode</Label>
  </div>
</template>

Installation

pnpm dlx shadcn-ember@latest add switch

Usage

import { Switch } from '@/components/ui/switch';
<Switch />