Switch
Two-state button that can be switched on or off. Requires an alias import.
Source Tailwind CSS
Receive emails about new products, features, and more.
Installation
templui add switch
Since switch is a reserved Go keyword, use an alias import:
import switchcomp "your-project/components/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 |
|---|---|---|
| | - |
| | - |
| | - |
| | - |
| | |
| | |
| | |