amankaushik481

Status Badge

Component

About

A small pill with a tinted fill, hairline border and leading colored dot used to show the state of a record, like paid, overdue or draft, in a table or list.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Status Badge to your project and fits it to your theme.

Code

How Status Badge is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { StatusBadge } from "@/components/ui/status-badge";

export default function StatusBadgeDemo() {
  return (
    <div className="flex flex-wrap items-center gap-3">
      <StatusBadge>Draft</StatusBadge>
      <StatusBadge tone="success">Paid</StatusBadge>
      <StatusBadge tone="warning">Due soon</StatusBadge>
      <StatusBadge tone="danger">Overdue</StatusBadge>
      <StatusBadge tone="accent">Scheduled</StatusBadge>
      <StatusBadge tone="info">Processing</StatusBadge>
    </div>
  );
}

Dependencies

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1