Skip to content

Collapse

A single show/hide section. Native <details>, no JavaScript.

Basic

Advanced settings

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/collapse.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-collapseOn a <details>.
mn-collapse-contentBody.
mn-collapse-plainNo border.

Accessibility

  • Native disclosure semantics and keyboard support.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page