Skip to content

Badge ​

Small label — NEW!, a count, a status word

An upright plate like every other label — it is never attended to, so it never leans. Ink by default: colour means chosen, and a NEW! marker isn't a choice. danger, warning, success and info are for status; badge and accent follow the palette and are for something chosen. Fills carry white text (on-light on warning and success). It marks a thing: new, on sale, paid, episode 12. It is not interactive and never removable — that's Chip — and it doesn't sit on a corner of something else — that's Indicator.

scaled shrinks it to 0.8, the way the source site's NEW! sat beside a nav item; BlessSidebarNav and BlessListItem use it, everything else shouldn't. variant="outline" is the quiet version: border and text in the colour, no fill — for role and category tags that label rather than shout. Warning and success outlines take a muted border: their fills are too pale to draw a line.

Basic
News 04.04 NEW!Story EP.12Shop SALE
Colors
badgeaccentdangerwarningsuccessinfotext
Outline
企画サブディレクターメインヒロイン
textdangerinfoNEW!

Usage ​

ts
import { BlessBadge } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
color"text" | "accent" | "danger" | "warning" | "success" | "info" | "badge""text"
scaledbooleanfalseshrink to 0.8 — the source's NEW! next to a nav item; off by default
variant"solid" | "outline""solid"outline: 1px border and text in the colour, no fill — quiet category/role tags

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.