Skip to Content
NarakUI

Pill & Tag

Small label components for displaying status, tags, or labels.

Pill

A single line of text with a predefined text color. It has no background and a fixed height.

Basic

Leave color unset to inherit the surrounding text color.

Tracked

Cited

Mentioned

Recommended

Pending

Not cited

Archived

Draft

Tag

A rounded container for categorizing, labeling, or highlighting content. It has no color of its own; set background and text colors with className.

Basic

A neutral fill and an outline. Product tags use text-body-mini-regular.

Competitor
Product page

Colors

Pair a muted bg-bg-* fill with the matching text-text-* color.

Enabled
Failed
Disabled
New
Beta
Archived

Sizes

Tag has no size prop. Set the type token and padding with className.

Mini
Small

With icons

Pass an icon as a child. Tag lays out its children in a row.

Cited
Crawl failed
Stale data
Sampled

Installation

pnpm dlx shadcn@latest add @narakui/pill-tag

Add "@narakui": "https://ui.narakcode.dev/r/{name}.json" to components.json, or install directly from https://ui.narakcode.dev/r/pill-tag.json.

Usage

import { Pill, Tag } from '@/components/ui/pill-tag';

// Pill usage
<Pill value="Cited" color="green" />
<Pill value="Draft" withPadding={false} />

// Tag usage
<Tag className="bg-bg-orange text-body-mini-regular text-text-orange">Disabled</Tag>
<Tag className="border border-fill-quaternary text-body-mini-regular text-text-primary">
  Product page
</Tag>

Pill Properties

PropTypeDefaultDescription
valuestringRequiredThe text content to display in the pill.
classNamestring—Additional CSS classes to apply to the pill container.
color'green' | 'blue' | 'purple' | 'orange' | 'red' | 'gray'—Text color of the pill. Inherits the surrounding text color when unset.
withPaddingbooleantrueWhether to include horizontal padding in the pill.

Tag Properties

PropTypeDefaultDescription
childrenReactNodeRequiredThe content to display inside the tag.
classNamestring—Additional CSS classes to apply to the tag, including its colors.