Skip to content

Field

Label, control, hint and error message wired together, plus form and fieldset layout.

Label, hint and error

We'll never share it.

Must be at least 3 characters.

Form layout

Notifications

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/field.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-fieldStacks a label, a control and its messages.
mn-label · mn-reqLabel · required marker.
mn-hint · mn-errorHelp text · error text. Link them with aria-describedby.
mn-form · mn-form-rowVertical form rhythm · responsive multi-column row.
mn-fieldsetGroups related controls under a legend.

Accessibility

  • Always pair a label with its control using for/id.
  • Point aria-describedby at the hint and the error; set aria-invalid="true" when invalid.
  • The required marker is visual, also set the required attribute on the control.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page