Skip to content

Toggle

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

API Reference

Installation

pnpm dlx shadcn@latest add @frontal-labs/toggle

Usage

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

API Reference

Toggle

Styled wrapper for Toggle.Root from Base UI with variant and size options.

Examples

Outline

With Icon

Small Size

Large Size

Disabled

Icon Group