Input fields
Text fields allow user input. The border should light up simply and clearly indicating which field the user is currently editing. You must have a .input-field
div wrapping your input and label. This
helps our jQuery animate the label. This is only used in our Input and Textarea form elements.
If you don't want the Green and Red validation states, just remove the validate
class from your inputs.
Prefilling Text Inputs
If you are having trouble with the labels overlapping prefilled content, Try adding class="active"
to the label
Icon Prefixes
You can add an icon prefix to make the form input label even more clear. Just add an icon with the class prefix
before the input and label.
Textarea
Textareas allow larger expandable user input. The border should light up simply and clearly indicating which field the user is currently editing. You must have a .input-field
div wrapping your input
and label. This helps our jQuery animate the label. This is only used in our Input and Textarea form elements.
Textareas will auto resize to the text inside.
You can add an icon prefix to make the form input label even more clear. Just add an icon with the class prefix
before the input and label.
Input Select
Select allows user input through specified options. Make sure you wrap it in a .input-field
for proper alignment with other text fields.
You can add the class browser-default
to get the browser default.
You can also add disabled
to the select element to make the whole thing disabled. Or if you add disabled
to the options, the individual options will be unselectable.
Checkboxes
Checkboxes are used when the user want to make selection out of a group of items.
Switches
File Input
If you want to style an input button with a path input we provide this structure.
Range Selector
Add a range slider for values with a wide range. This one is set to be a number between 0 and 100.
Date Picker
We use a modified version of pickadate.js to create a materialized date picker. Test it out below!
Character Counter
Use a character counter in fields where a character restriction is in place.