Basic form elements

Basic form elements are text fields that allow the user to input text or select a value. They can be single line or multi-line, and can have an icon.

Basic elements

  • When the field is focused, there will be a thicker line drawn beneath it. The label in this example is always visible.
  • The vertical layout can be used in combination with a floating label. With floating labels, when the user engages with the input fields, the labels move to float above the field.

Help text

email@example.com

Basic elements

Help text

email@example.com

Basic elements with floating labels

Sizes

Set heights using classes like .input-lg, and set widths using grid column classes like .col-lg-*.

Control sizing
Control sizing with floating labels

Input states

  • Add the disabled boolean attribute on an input to prevent user input and trigger a slightly different look.
  • Add the readonly boolean attribute on an input to prevent user input and style the input as disabled.
Input states
Input states with floating labels

Validation states

Material Admin includes validation styles for error, warning, and success states on form controls.

Validation states
Validation states with floating labels

Groups

Extend form controls by adding text or buttons before, after, or on both sides of any text-based <input>.

.00
.00
Input groups
.00
.00
Input groups with floating labels

Switches

Switches allow the user to select options. There are two kinds: checkboxes and radio buttons.

Checkboxes

Checkboxes allow the user to select multiple options from a set.

If you have multiple on/off options appearing in a list, checkboxes are a good way to preserve space.

Checkboxes use animation to communicate focused and pressed states.

Radio buttons

Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.

Radio buttons use animation to communicate focused and pressed states.


Horizontal form elements

Each element above, can also be used in a horizontal layout.

email@example.com

Example block-level help text here

Basic elements
Control sizing
Input states
Validation states
.00
.00
Input groups
Chat with Ann Laurens
  • Yes, it is indeed very beautiful. 10:03 pm
  • Did you see the changes? 10:02 pm
  • I just arrived at work, it was quite busy. 06:44pm
    I will take look in a minute. 06:45pm
  • The colors are much better now.
    The colors are brighter than before. I have already sent an example. This will make it look sharper. Mon
  • Are the colors of the logo already adapted? Last week