Skip to content

Checkbox

Native checkbox, restyled. Checked, indeterminate, disabled and invalid states; any colour role.

Basic

With description

Colours

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/checkbox.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-checkboxOn an <input type="checkbox">.
mn-checkA label that lays out a control with its text.

Accessibility

  • It is a native checkbox, so Space toggles and state is announced. Wrap it in a <label> so the text is clickable.
  • Set indeterminate from script: el.indeterminate = true.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page