Use .form-field to style form controls like <input>, <select> and <textarea> elements. Label and description styles will automatically be applied to label and p elements, respectively.
Text fields, textareas and dropdowns
Search fields
The search form markup is provided automatically by the {{search}} helper.
Wrap the search form in .search to provide additional styling. Use .search-icon with your chosen SVG search icon.
The appearance of the search fields can be modified using Sass or CSS. For example, rounded borders can be added using the $border-radius-search variable:
$border-radius-search:2rem;
Search modifier and utility classes can also be used to change the look-and-feel of search elements:
Checkboxes
By default, any number of checkboxes that are immediate sibling will be vertically stacked and appropriately spaced.
States
Add the disabled boolean attribute to an input to disable it, or to a <fieldset> to disable all the controls within it.
Questions or feedback about this article? Let us know
Verify purchase
Provide details about your purchase to unlock this and other code examples throughout the website.