๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข
UI Components

Badge

A small status indicator for labeling items with colors, counts, or keywords

Quick Preview

DefaultSuccessWarningErrorOutlineSecondary

Structure

Anatomy of the Badge โ€” a status pill with an optional inline icon.

โœฆLabel
Label โ€” required text or ReactNodeIcon โ€” optional, placed before labelPill container โ€” rounded-full, colored by variant

States

Badge variants represent semantic states โ€” use them to communicate status at a glance.

Variants โ€” semantic states

Each variant signals a different meaning

6 states
Default

Default

Neutral / informational

Success

Success

Positive / completed

Warning

Warning

Caution / pending

Error

Error

Failure / danger

Outline

Outline

Minimal / low emphasis

Secondary

Secondary

Subtle / supporting

Sizes

Two size tokens โ€” sm md (default).

Sizes โ€” sm / md

Visual comparison across all variants and sizes

8 states
Default

Default sm

Default

Default md

Success

Success sm

Success

Success md

Warning

Warning sm

Warning

Warning md

Error

Error sm

Error

Error md

Installation

// Copy the Badge component from
src/components/ui/Badge.tsx

Usage

import { Badge } from '@/components/ui/Badge'
export default function Example() {
return <Badge variant="success">Active</Badge>
}

Examples

Sizes

SmallMedium

With Icons

โœ“ Verifiedโœ• Rejectedโš  Pending

In Context โ€” Product Card

Pro PlanNewAvailable

Prompt Preview

Copy a prompt that recreates this UI

Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.

Copy-ready AI prompt

Starts from the current visual reference and project constraints.

Tweak only product-specific copy or data after the first generation pass.

Props

PropTypeDefaultDescription
variant"default" | "success" | "warning" | "error" | "outline" | "secondary""default"Color scheme of the badge
size"sm" | "md""md"Size of the badge
children*React.ReactNode-Badge content
classNamestring-Additional CSS classes

Features

  • โœ“6 color variants (default, success, warning, error, outline, secondary)
  • โœ“2 sizes (sm, md)
  • โœ“Rounded-full pill shape
  • โœ“Border included in all variants
  • โœ“Composable โ€” accepts any children (text, icon, count)