Skip to content

Toggle

Provides a two-state button that users can press to turn a specific feature, view, or styling option on and off.

2 KB
•
Updated on September 20, 2026

Installation

Bash

Usage

Code
Code

Features

Variants

Toggle buttons in default and outline styles.

Sizes

Toggle buttons in sm, default, and lg sizes.

Disabled

Toggle button rendered in a disabled state.

API Reference

Toggle

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

Examples

Large toggle
Toggle icon group
Bookmark toggle with tooltip and success toast