Ship faster with goilerplate templUI Pro

Switch

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

Source Tailwind CSS

Receive emails about new products, features, and more.

Installation

templui add switch

Examples

Form

Manage your devices connectivity options.

Please configure your connectivity settings.

API Reference

Required parameter
Hover for description

Switch

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

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