"use client" import { StatusBadge } from "@/components/ui/status-badge" import { Badge, BadgeCount } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Kbd, KbdGroup } from "@/components/ui/kbd" import { Skeleton } from "@/components/ui/skeleton" import { cn } from "@/lib/utils" const BADGE_VARIANTS = [ { variant: "default" as const, label: "Default" }, { variant: "secondary" as const, label: "Secondary" }, { variant: "outline" as const, label: "Outline" }, { variant: "destructive" as const, label: "Destructive" }, { variant: "ghost" as const, label: "Ghost" }, { variant: "link" as const, label: "Link" }, ] const SEMANTIC_STATUS_EXAMPLES = [ { label: "Compliant", tone: "success" as const, icon: "fa-circle-check" }, { label: "In review", tone: "info" as const, icon: "fa-clock" }, { label: "Draft", tone: "neutral" as const, icon: "fa-pen" }, { label: "Due soon", tone: "warning" as const, icon: "fa-triangle-exclamation" }, { label: "Non-compliant", tone: "danger" as const, icon: "fa-circle-xmark" }, ] export function BadgeVariantsPreview() { return (
{BADGE_VARIANTS.map(({ variant, label }) => ( {label} ))}
) } export function BadgeSizesPreview() { return (
) } export function BadgeWithIconPreview() { return (