Skip to content

Badge

A compact label for status, counts and categories.

Variants

Default Secondary Soft Outline

Status

Active Pending Failed Queued Draft

Counts

99+

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/badge.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-badgeSolid badge, primary by default.
mn-badge-soft · mn-badge-outlineVariants.
mn-badge-sm · mn-badge-lgSizes.
mn-dotA status dot inside a badge.
mn-* colour rolesAny role.

Accessibility

  • Badges are plain text. If a badge is a count on an icon button, include it in the button's aria-label.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page