VOOZH about

URL: https://www.geeksforgeeks.org/css/spectre-forms-form-switch/

⇱ Spectre Forms Form Switch - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Spectre Forms Form Switch

Last Updated : 23 Jul, 2025

The Spectre Forms provide the most common control component used in regular forms. In this article, we will discuss the form switch. The form switch is an important component that is required to get the activation value or on/off value from the user as usual.

Forms Form Switch Class:

  • form-switch: This class gives the switch button a spectre look that suits the spectre theme.
  • form-icon: This class is used to place the radio button options.
Syntax:
<label class="form-switch"><label>

Below example illustrate the Spectre Forms Form Switch:

 

Example:

Output:

👁 Spectre Forms Form Switch

Reference: https://picturepan2.github.io/spectre/elements/forms.html#forms-switch

Comment