templUI Pro coming soon  

50% OFF Join Waitlist

Toggle

Two-state button that can be switched on or off.

Source
TailwindCSS

Installation

templui add toggle

Examples

Checked

With Label

Disabled

Form

Manage your devices connectivity options.

Please configure your connectivity settings.

API Reference

Required parameter
Hover for description

Toggle

Two-state button component that can be switched on or off.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-
Name
string
-
Checked
bool
false
Disabled
bool
false