Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/huntabyte/shadcn-svelte/llms.txt

Use this file to discover all available pages before exploring further.

Installation

npx shadcn-svelte@next add toggle

Usage

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

Examples

Default

Basic toggle button.

Outline

Toggle with outline variant.

With Text

Toggle button with text label.

Small

Smaller toggle button size.

Large

Larger toggle button size.

Disabled

Disabled toggle button state.

Build docs developers (and LLMs) love