About
A small read-only chip that pairs a colored state dot with a label to show status like running, connecting, failed, or archived in a list row or detail header.
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
style={{
display: "flex",
alignItems: "center",
gap: 8,
flexWrap: "wrap",
}}
>
<StatusBadge tone="success">运行中</StatusBadge>
<StatusBadge tone="progress">挂载中</StatusBadge>
<StatusBadge tone="warning">未连接</StatusBadge>
<StatusBadge tone="error">挂载失败</StatusBadge>
<StatusBadge tone="neutral">已下架 · 仍可使用</StatusBadge>
</div>
);
}
