Docs
Switch

Switch

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

Installation

	npx  shadcn-svelte@next add switch

Usage

	<script lang="ts">
  import { Switch } from "$lib/components/ui/switch/index.js";
</script>
 
<Switch />

Examples

Form

Email Notifications
Receive emails about new products, features, and more.
Receive emails about your account security.
200
{
  marketing_emails: false,
  security_emails: true
}