Oihana Next UI - 0.48.0

Application logo

Badges

Indicateurs visuels compacts pour signaler un statut, un compteur ou une catégorie.

Badge Examples

All Colors

DefaultNeutralPrimarySecondaryAccentInfoSuccessWarningError

All Sizes

XSSMMD (default)LGXL

A Colour Of Its Own

Any CSS colour becomes a wash behind the label and a stronger line around it — never a fill, which would need its ink recomputed for contrast, once per theme, for a colour nobody vouches for.

VioletAmberSkyNamed, not hex

tint says how much of it washes the plate : a number from 0 to 1, or false for an ordinary plate — the form a dense list wants, where a mark beside the label already carries the colour.

tint 0.08default (0.15)tint 0.3tint 0.6tint false
<Badge color={ term.color }>{ term.label }</Badge>
<Badge color={ term.color } tint={ false }>{ term.label }</Badge>

Outline Style

NeutralPrimarySecondaryAccentInfoSuccessWarningError

Dash Style

NeutralPrimarySecondaryAccentInfoSuccessWarningError

Soft Style

NeutralPrimarySecondaryAccentInfoSuccessWarningError

Ghost Style

DefaultNeutralPrimarySecondaryAccentInfoSuccessWarningError

Combined Styles

3 errors2 warnings✓ Activeℹ Info

Dot Indicators (Empty)

Online
Away
Offline
Inactive

Custom Element (Link)

Practical Use Cases

Status Indicators

PublishedDraftRejectedUnder ReviewArchived

Notifications

Tags

ReactNext.jsTypeScriptTailwindCSSDaisyUI

Versions

v2.0.0betaalphadeprecated

Priority Levels

HighMediumLowNone

In Context

Project AlphaActive

Premium

This is an example of badges used within a card component.

ReactTypeScript

With Icons/Emojis

✓ Completed✗ Failed⚠ Warningℹ Info⭐ Featured🔥 Hot🎉 New

LabelBadge Examples

Shields.io Style

npmv0.6.1downloads9.6klicenseMPL-2.0

All Sizes

sizexssizesmsizemdsizelgsizexl

DaisyUI Colors (right side)

colorneutralcolorprimarycolorsecondarycoloraccentcolorinfocolorsuccesscolorwarningcolorerror

Custom CSS Colors

buildpassingcoverage98% stars1.2khotoklch(0.7 0.2 30)

Style Variants

stylesolidstylesoftstyleoutline
stylesolidstylesoftstyleoutline
stylesolidstylesoftstyleoutline

Custom Label Color

statusonlineenvprodtierpro
warnchecklightondarkoff
branchmainbranchdevciqueued

Truncation & Single-sided

repoBcommeBois/oihana-next-ui/tree/main/src/componentsbranchfeature/label-badge-accessibility-and-truncation
value onlylabel onlyoutline single

Copy badge

Click a badge to copy its value. The glyph turns into a check and the badge borrows the success colour for a moment, then goes back. A failed write turns it red instead.

Sizes
Colours and variants
Nothing to copy

An empty value renders nothing at all — there is no badge below this line.

Contact badge

The pill acts — it dials, faxes or opens a message — and the button beside it copies. What is shown keeps its separators ; the link keeps only the digits.

Channels
Shown, but not actionable
01 23 45 67 89hello@example.org
Another channel