VOOZH about

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

⇱ Spectre Forms - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Spectre Forms

Last Updated : 23 Jul, 2025

Spectre Forms is one of the most important elements in Spectre. Spectre forms offer us so many common style classes that designing a form becomes so easy. Like creating input fields, textarea, select, checkboxes, etc. All the components are mentioned and described below.

Spectre Forms Class:

  • form-group: This class is used to create a form

Note: To create a form in spectre above mentioned class will be container of forms component.

Syntax:

<div class="form-group">
...
</div>

Below example illustrate the Spectre Forms;

Example:

Output:

👁 Spectre Forms
Spectre Forms

Example 2:

Output:

👁 Spectre Forms
Spectre Forms

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

Comment