nalarx-ui
Components

Badge

A neutral pill for short labels; status shows as a small coloured dot.

bunx shadcn@latest add @nalarx/badge

Usage

import { Badge } from "@/components/ui/nx/Badge";

<Badge tone="ok">Active</Badge>

Tones

The pill never takes a colour; the dot carries the status. accent draws as neutral: orange is not a status.

neutralokwarnerroffaccent
neutralokwarnerroffaccent

Sizes and long text

One line always: long text ends in an ellipsis and the full text is in the title.

smmd
A very long chip label that has to truncate inside its fixed height
smmd
A very long chip label that has to truncate inside its fixed height

Props

Every span attribute, plus tone ("neutral" | "ok" | "warn" | "err" | "off" | "accent", default "neutral") and size ("sm" | "md", default "md").

Replaces

NxChip in both apps (variant becomes tone) and the Platform's base/Badge.tsx.

On this page