Command Palette

Search for a command to run...

Toggle

A two-state button that can be either on or off. Built on Base UI Toggle primitive.

Installation

npx shadcn add toggle --registry https://ui.ch.sh/r

Usage

import { Toggle } from "@/components/ui/toggle"

export default function Example() {
  return <Toggle>Toggle me</Toggle>
}

Examples

Outline

With Text