Toggle

A toggle is a controlled component. Its state must be managed by a parent.

With fieldset and label

Login options

Sizes

Colors

Disabled

Indeterminate

The indeterminate state can only be set using JavaScript after the element has rendered.

Toggle with icons inside

Use a label with the `toggle` class, and place the checkbox and icons inside.

Toggle with custom colors

Use the `classes` property for custom Tailwind utilities.