Get started
Fabricator UI

Search documentation

Search pages, components, blocks, styles and colours.

Toggle

PreviousNext

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

Installation

bunx --bun fabricator-ui@latest add toggle

Usage

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

Outline

Use variant="outline" for an outline style.

With Text

Size

Use the size prop to change the size of the toggle.

Disabled

API Reference

See the Radix Toggle documentation.