FEEDBACK · COMPONENT

Badge

Small labels that communicate a meaningful state.

@raydenui/ui 0.10.1React + TypeScript
Documentation ↗
Loading the real component…
"use client";
import { useState } from "react";
import { Badge, Button } from "@raydenui/ui";
import "@raydenui/ui/styles.css";
const stages = [{ label: "Draft", color: "neutral" }, { label: "In review", color: "warning" }, { label: "Approved", color: "success" }] as const;
export default function Example({ state = "default" }: { state?: string }) {
  const [stage, setStage] = useState(0);
  return <div style={{ width: "min(100%, 460px)", display: "grid", gap: 28 }}><h2 style={{ fontSize: 24 }}>Give status a little clarity.</h2><div style={{ display: "flex", gap: 12, flexWrap: "wrap" }}>{stages.map(item => <Badge key={item.label} color={item.color} type={state === "outline" ? "outline" : state === "filled" ? "filled" : "accent"}>{item.label}</Badge>)}</div><p role="status">Demo project status: {stages[stage].label}</p><div><Button onClick={() => setStage((stage + 1) % stages.length)}>Move to next status</Button></div></div>;
}
Live library components · illustrative demo data · no remote submissionsReset returns to the initial example.

Made for real interfaces.

Semantic status badges compare draft, review and approval labels across accent, outline and filled appearances. A demo action cycles the current project status.

Try it

Move the demo project through its statuses and compare the badge appearances.