Skip to content

Docs layout

A documentation page: navigation on the left, the reading column, and an “on this page” list on the right, collapsing to a menu on small screens.

Docs page

Quickstart

Quickstart

Send your first message in under five minutes.

Get a key

Create a key in the dashboard and keep it on the server.

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/docs-layout.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-docsThe wrapper (a container).
mn-docs-inThe grid; put it on an mn-container. One column, then nav + content (56rem), then nav + content + table of contents (76rem).
mn-docs-navThe sticky navigation column (holds an mn-sidebar).
mn-docs-pickerA <details> with the same navigation for narrow screens; hidden once the nav column shows.
mn-docs-contentThe reading column (max 46rem). Combine with mn-prose.
mn-docs-tocThe sticky “On this page” list.

Accessibility

  • Label both navigations (aria-label="Documentation" and "On this page").
  • Mark the current page with aria-current="page" in the nav.
  • The narrow-screen menu is a native <details> disclosure.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page