A badge component with 8 semantic variants (default, secondary, outline, destructive, error, info, success, warning), 3 sizes, icon support, and render prop for polymorphism. Built on Base UI's useRender hook.
import { Badge } from "@/components/ui/component"; export default function BadgeDestructive() { return ( <div className="flex items-center justify-center w-full min-h-screen bg-background"> <Badge variant="destructive">Badge</Badge> </div> ); }
Part of coss — browse the full library on 21st.dev.