Used to label form elements such as TextField and Dropdown.
State | Applied to | Result |
---|---|---|
.is-required |
.ms-Label |
Marks the form element as required. |
.is-disabled |
.ms-Label |
Marks the form element as disabled. |
<head>
<link rel="stylesheet" href="fabric.min.css">
<link rel="stylesheet" href="fabric.components.min.css">
</head>
<label class="ms-Label">
Name
</label>
.ms-Label
) with your content.This component has no dependencies on other components.
When used with a form element, add a for
attribute that matches the id
attribute of the field.