<script lang="ts">
import { Label } from "$lib/components/ui/label/index.js";
import { Switch } from "$lib/components/ui/switch/index.js";
</script>
<div class="flex items-center space-x-2">
<Switch id="airplane-mode" />
<Label for="airplane-mode">비행기 모드</Label>
</div> 설치
bits-ui를 설치하세요:
다음 코드를 복사하여 프로젝트에 붙여넣으세요.
사용법
<script lang="ts">
import { Switch } from "$lib/components/ui/switch/index.js";
</script> <Switch />