{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "metric-group",
  "type": "registry:component",
  "title": "Metric group",
  "description": "A compact shared surface for related metrics and their context.",
  "categories": [
    "metrics"
  ],
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/registry/overtrue/metric-group.tsx",
      "type": "registry:component",
      "target": "components/overtrue/metric-group.tsx",
      "content": "import type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n/** A shared surface; use StatCard when each metric needs its own card. */\nexport function MetricGroup({ className, ...props }: ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"metric-group\"\n      className={cn(\n        \"grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-px overflow-hidden rounded-2xl border border-border bg-border text-card-foreground shadow-[0_1px_2px_rgb(0_0_0/0.04),0_8px_24px_-12px_rgb(0_0_0/0.10)] dark:shadow-[inset_0_1px_0_rgb(255_255_255/0.05),0_1px_2px_rgb(0_0_0/0.5)] [&>*]:bg-card\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\nexport function MetricGroupItem({\n  label,\n  value,\n  context,\n  className,\n  ...props\n}: Omit<ComponentProps<\"div\">, \"children\"> & {\n  label: string;\n  value: ReactNode;\n  context?: ReactNode;\n}) {\n  return (\n    <div\n      data-slot=\"metric-group-item\"\n      className={cn(\n        \"@container min-w-0 px-5 py-5 wrap-anywhere sm:px-6\",\n        className,\n      )}\n      {...props}\n    >\n      <p className=\"m-0 text-[13px] leading-5 font-medium text-muted-foreground\">\n        {label}\n      </p>\n      <p className=\"mt-2 mb-2.5 text-[clamp(1.125rem,14cqi,1.875rem)] leading-[1.15] font-semibold tracking-[-0.035em] tabular-nums\">\n        {value}\n      </p>\n      {context && (\n        <div className=\"text-xs leading-5 text-muted-foreground\">{context}</div>\n      )}\n    </div>\n  );\n}\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/components/metric-group. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
