Form and Input Widgets
Overview
This page covers the classnames used for form and input widgets in the sidebar. These widgets allow you to create and customize form fields, text areas, and manage field configurations. Below, you will find detailed information on each widget’s classnames, including deprecated versions (if applicable) and current classnames to ensure your application remains up-to-date.
1. Form Label
Description: The form label widget provides clear, concise labels for input fields, ensuring accessibility and ease of use.
Deprecated Classnames:
toggle-menu-button--cs
button-large--cs
widget__textbox
scrollable__panel--cs
New Classnames:
button-small--cs
add-form-field--cs
dropdown-menu--cs
Sample CSS:
Sample HTML:
2. Input Text
Description: This widget styles textual input fields, such as URLs, email addresses, and general text inputs. These fields are essential for gathering user information.
Deprecated Classnames:
number-selector--cs
widget__textbox
item_1-2
New Classnames:
input-text--cs
input-text-boxed--cs
Sample CSS:
Sample HTML:
3. Input Text - Email
Description: This widget is for email input fields, typically used with a form label to indicate that a valid email address is required.
Deprecated Classnames:
number-selector--cs
widget__textbox
item_1-2
New Classnames:
input-text--cs
Sample CSS:
Sample HTML:
4. Input Text - URL
Description: This widget handles URL inputs, often used in forms that require website links or external resources.
Deprecated Classnames:
number-selector--cs
input-image-url
widget__textbox
New Classnames:
input-text--cs
Sample CSS:
Sample HTML:
5. Input Text - Tel
Description: This widget is used for telephone number input fields, typically included in contact forms.
Deprecated Classnames:
number-selector--cs
widget__textbox
item_1-2
New Classnames:
input-text--cs
Sample CSS:
Sample HTML:
6. Manage Fields - Add New Field
Description: The "Add New Field" widget allows users to dynamically add new fields to forms. This is particularly useful for managing custom forms in the sidebar.
Deprecated Classnames:
toggle-menu-button--cs
button-large--cs
widget__textbox
New Classnames:
button-small--cs
add-form-field--cs
dropdown-menu--cs
dropdown-menu-button--cs
dropdown-menu-search--cs
input-search--cs
dropdown-menu-scrollable--cs
dropdown-menu-item--cs
Sample CSS:
Sample HTML:
7. Textarea
Description: The textarea widget is used for multiline text inputs such as comments or descriptions. It is a flexible input area that allows users to enter longer text.
Deprecated Classnames:
widget__textbox
textarea-box-old
New Classnames:
input-text--cs
textarea-boxed--cs
Sample CSS:
Sample HTML:
8. Select Dropdown
Description: The select dropdown widget allows users to choose from predefined options, often used for categorical inputs.
Deprecated Classnames:
item_1-2
widget__textbox
New Classnames:
dropdown-menu--cs
dropdown-menu-item--cs
Sample CSS:
Sample HTML:
9. Checkbox and Radio Button
Description: Checkboxes and radio buttons are common input elements used for binary or multiple-choice options.
Deprecated Classnames:
toggle-wrapper--cs
toggle-input--cs
toggle-slider--cs
New Classnames:
radiogroup--cs
radiogroup-button--cs
Sample CSS:
Sample HTML:
This page consolidates all form and input-related classnames. For deprecated classnames, ensure you're transitioning to the new classnames.
For more detailed implementation on how to customize form and input widgets, refer to the Customizing Sidebar Widgets section on the Sidebar Widgets Classnames page.
Last updated