Skip to main content
Version: 2.0.2

Forms

Designing an effective form is not easy, to help you, the main elements like input, textarea, select, and checkbox have been designed to best adapt to your content.

Basic usage​

The input must necessarily be surrounded by the .ms-form-group tag.

Live Editor
Result
Loading...

Inputs

The inputs have the same design, whatever the type. Moreover, no class is necessary as they are nested in the .ms-form-group tag.

Live Editor
Result
Loading...

The inputs can also take a different color depending on the state of the inputs. It is also possible to add a message under the input with the classe .ms-under-input.

Live Editor
Result
Loading...

If you don't want to use the whole width, you can use the .ms-autowidth class on inputs.

Live Editor
Result
Loading...

Select

The select also includes the traditional input formatting. It allows you to list a number of values and to select one of them.

Live Editor
Result
Loading...

Textarea

The textarea also takes the form of traditional inputs. It allows you to enter a text that may include several lines.

Live Editor
Result
Loading...

Inline

You can display the element on the same line as the label with the class .ms-form-group-inline on the parent tag.

Live Editor
Result
Loading...

Sizes

Classes .ms-small, .ms-medium and .ms-large allow you to change the size of the input.

Live Editor
Result
Loading...

Rounded

The class .ms-rounded allows you to round off the ends of the inputs.

Live Editor
Result
Loading...

Disabled

You can disable an input with the .ms-disabled class and the disabled attribute.

Live Editor
Result
Loading...

Shadow

Finally, it is also possible to add a shadow on inputs with the helper class .ms-box-shadow.

Live Editor
Result
Loading...