Buttons

Toggle Group

A toggle button group provides an intuitive way for users to switch between multiple options, supporting both single and multi-selection modes.

Basic

A toggle button lets folks flip a choice on or off, like switching between two vibes or modes.

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Composed Components

Plug this component into the CLI, and it automatically loads all the included components. No need to add them individually.

The Toggle Group comes packed with a variety of components to make it stand out.

Toggle

Toggle is like light switches for your digital digs. Flip 'em on, and they light stuff up; flip 'em off, and it's lights out.

Manual Installation

Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.

Anatomy

Orientation

By default, the toggle button group is horizontally oriented. You can change it to a vertical orientation by using the orientation prop.

Selection Mode

You can change the selection mode of the toggle button group by using the selectionMode prop.

Appearance

You can change the appearance of the toggle button group by using the appearance prop.

Controlled

You can control the state of the toggle button group by using the selectedKeys prop.

Selected: bold

Disabled

You can disable a toggle button group by using the disabled prop.

If you want, you can also disable individual toggle buttons by using the isDisabled prop on the Toggle component.

<Toggle isDisabled>Disabled</Toggle>