Skip to content

Commit

Permalink
[Switch] Add label example
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jul 6, 2023
1 parent b028cb7 commit 1d4ea81
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/routes/docs/components/Switch/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
</div>
</Preview>

<h2>Label</h2>

<Preview>
<div class="grid gap-2">
<label class="flex gap-2 items-center text-sm">
Click me
<Switch />
</label>
<label class="flex gap-2 items-center text-sm">
<Switch />
Click me
</label>
</div>
</Preview>

<h2>Icons</h2>

<Preview>
Expand Down

1 comment on commit 1d4ea81

@vercel
Copy link

@vercel vercel bot commented on 1d4ea81 Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.