1. Docs
  2. components
  3. Toggle

Toggle

A two-state button that can be either on or off.

Installation

Copy and paste the following code into your project.

Update the import paths to match your project setup.

Usage

import { Toggle } from "~/components/ui/toggle";
<Toggle>Toggle</Toggle>

Examples

Default


Outline


With text

Small

Large

Disabled