πŸ“„ tailwindcss/plus/ui-blocks/application-ui/forms/toggles

File: toggles.md | Updated: 11/15/2025

Source: https://tailwindcss.com/plus/ui-blocks/application-ui/forms/toggles

5-day Mini-Course

Build UIs that don’t suck.

Short, tactical video lessons from the creator of Tailwind CSS, delivered directly to your inbox every day for a week.

Get the free course

Toggles

Use these Tailwind CSS toggle components to add on/off switches for settings like dark mode, notifications, and feature flags. These components are designed and built by the Tailwind CSS team, and include a variety of different styles and layouts.

Simple toggle


Preview

Get the code β†’

Simple toggle


Preview

Get the code β†’

Short toggle


Preview

Get the code β†’

Short toggle


Preview

Get the code β†’

Toggle with icon


Preview

Get the code β†’

Toggle with icon


Preview

Get the code β†’

With left label and description


Preview

Get the code β†’

With left label and description


Preview

Get the code β†’

With right label


Preview

Get the code β†’

With right label


Preview

Get the code β†’