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 StatusBadgeWithoutDotDemo() {
return (
<div
style={{
display: "flex",
alignItems: "center",
gap: 8,
flexWrap: "wrap",
}}
>
<StatusBadge tone="success" dot={false}>
运行中
</StatusBadge>
<StatusBadge tone="error" dot={false}>
挂载失败
</StatusBadge>
</div>
);
}
