Form Labels
Use the .formLabel
class to get our custom styling for form labels.
Use the .formLabel
class to get our custom styling for form labels.
Use the .formControl
class to get default styling for text inputs.
Text inputs are always paired with a label to give users context. Placeholder
text is used for additional context when necessary.
Keep in mind, formControl
spans a width of 100% by default.
When necessary, place additional helper text beneath inputs in a label with a .form-helper class.
Textarea’s also use the .formControl
class.
Extend the .formControl
class with .formControl--select
to get default styling
for select fields. Optionally, use a form label above your select if the
default text is not descriptive enough, if the default is one of the
valid select options, or if the selection will be saved and viewable again
later.
Wrap a radio input with a label element and give it a class of .formRadio
.
Make them inline by adding the .formInline
class on the form element.
Wrap a checkbox input with a label element and give it a class of .formCheck
.
Make them inline by adding the .formInline
class on the form element.
Add the disabled
boolean attribute on an input to prevent user interactions. Disabled items appear lighter and add a not-allowed cursor.
For just the look of disabled, use the is-disabled
class.