Skip to content

Divider

A horizontal or vertical rule, optionally with a label.

Labelled and vertical

BlogDocsSource

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/divider.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-dividerHorizontal. Put text inside for a labelled divider.
mn-divider-verticalVertical, inside a flex row.

Accessibility

  • An empty <hr> is announced as a separator. A labelled divider is presentational; use role="separator" if it divides groups.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page