Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Tailwind CSS Switch/Toggle | Preline UI, crafted with Tailwind CSS
[go: Go Back, main page]

  1. Components
  2. Switch

Basic Forms

Tailwind CSS Switch/Toggle

A toggle is used to view or switch between enabled or disabled states.

Attention needed

By default Preline UI uses Tailwind CSS Forms plugin. Don't forget to install it!

Example

The default form of a toggle.

Theme:

With description

The basic usage with description.

Theme:

Disabled

Disabled switch.

Theme:

Sizes

Switches stacked small to large sizes.

Theme:

With Icons

You can also add additional elements, such as icons.

Theme:

Soft color variant

Soft style switch options.

Theme:

Rounded

Use the .rounded-* utility classes to make switches different rounded shape.

Theme:

With icons too.

Theme:

With tooltip

In this example we have added a tooltip to the switcher.

Theme:

Validation states

It provides valuable, actionable feedback to your users with HTML5 form validation.

Theme: