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.

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.

Composed Components

When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.

The Toggle's decked out with several components to make it bangin'.

Touch Target

Touch Target's a slick component used in other parts of your project that need trigger, like button, link, menu trigger, and more.

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.

And next, you can copy the code below and paste it into your dopest component folder.

Appearance

You can change the appearance of the toggle button by passing an appearance prop.

Shape

You can change the shape of the toggle button by passing a shape prop.

Size

You can change the size of the toggle button by passing a size prop.

Controlled

You can control the state of the toggle button by passing a isSelected prop.

Disabled

You can disable a toggle button by passing a disabled prop.