{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "health1",
  "title": "Vitals Dashboard",
  "description": "Health metrics dashboard displaying vital signs like heart rate, blood oxygen, activity, and sleep with trend indicators. Perfect for wellness apps and health tracking platforms.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/health1/health1.tsx",
      "content": "\"use client\";\n\nimport {\n  Activity,\n  Droplets,\n  Heart,\n  type LucideIcon,\n  Moon,\n  TrendingDown,\n  TrendingUp,\n} from \"lucide-react\";\nimport Link from \"next/link\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ninterface HealthMetric {\n  icon: LucideIcon;\n  label: string;\n  value: string;\n  unit: string;\n  trend?: \"up\" | \"down\" | \"stable\";\n  trendValue?: string;\n  color: \"rose\" | \"blue\" | \"emerald\" | \"violet\" | \"amber\";\n}\n\ninterface ButtonItem {\n  label: string;\n  href?: string;\n  variant?: \"default\" | \"secondary\" | \"outline\" | \"ghost\";\n}\n\ninterface Health1Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  metrics?: HealthMetric[];\n  buttons?: ButtonItem[];\n  cardStyle?: \"colorful\" | \"minimal\";\n  columns?: 3 | 4 | \"3\" | \"4\";\n  className?: string;\n}\n\nconst colorMap = {\n  rose: {\n    bg: \"bg-rose-50 dark:bg-rose-950/30\",\n    icon: \"text-rose-500\",\n  },\n  blue: {\n    bg: \"bg-blue-50 dark:bg-blue-950/30\",\n    icon: \"text-blue-500\",\n  },\n  emerald: {\n    bg: \"bg-emerald-50 dark:bg-emerald-950/30\",\n    icon: \"text-emerald-500\",\n  },\n  violet: {\n    bg: \"bg-violet-50 dark:bg-violet-950/30\",\n    icon: \"text-violet-500\",\n  },\n  amber: {\n    bg: \"bg-amber-50 dark:bg-amber-950/30\",\n    icon: \"text-amber-500\",\n  },\n};\n\nexport const health1Demo: Health1Props = {\n  badge: { label: \"Health Dashboard\", variant: \"outline\" },\n  heading: \"Your daily health overview\",\n  description:\n    \"Track your vitals and wellness metrics in real-time. Stay informed, stay healthy.\",\n  metrics: [\n    {\n      icon: Heart,\n      label: \"Heart Rate\",\n      value: \"72\",\n      unit: \"bpm\",\n      trend: \"stable\",\n      trendValue: \"Normal range\",\n      color: \"rose\",\n    },\n    {\n      icon: Droplets,\n      label: \"Blood Oxygen\",\n      value: \"98\",\n      unit: \"%\",\n      trend: \"up\",\n      trendValue: \"+2% from yesterday\",\n      color: \"blue\",\n    },\n    {\n      icon: Activity,\n      label: \"Daily Activity\",\n      value: \"8,432\",\n      unit: \"steps\",\n      trend: \"up\",\n      trendValue: \"84% of goal\",\n      color: \"emerald\",\n    },\n    {\n      icon: Moon,\n      label: \"Sleep Quality\",\n      value: \"7.5\",\n      unit: \"hours\",\n      trend: \"down\",\n      trendValue: \"-30min from avg\",\n      color: \"violet\",\n    },\n  ],\n  buttons: [\n    { label: \"View full report\", href: \"https://beste.co\" },\n    {\n      label: \"Set health goals\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n  cardStyle: \"minimal\",\n};\n\nexport function Health1({\n  badge,\n  heading,\n  description,\n  metrics = [],\n  buttons = [],\n  cardStyle = \"minimal\",\n  columns = 4,\n  className,\n}: Health1Props) {\n  const isMinimal = cardStyle === \"minimal\";\n  const columnCount = Number(columns);\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-5xl px-4 md:px-6\">\n        {(badge || heading || description) && (\n          <div className=\"mx-auto mb-14 max-w-3xl text-center\">\n            {badge && (\n              <div className=\"mb-5 flex justify-center\">\n                <Badge variant={badge.variant ?? \"default\"}>\n                  {badge.label}\n                </Badge>\n              </div>\n            )}\n            {heading && (\n              <h2 className=\"text-2xl font-semibold md:text-4xl text-balance\">\n                {heading}\n              </h2>\n            )}\n            {description && (\n              <p className=\"mt-4 text-base md:text-lg text-balance text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n\n        <div\n          className={cn(\n            \"grid gap-4 sm:grid-cols-2\",\n            columnCount === 3 ? \"lg:grid-cols-3\" : \"lg:grid-cols-4\"\n          )}\n        >\n          {metrics.map((metric, index) => {\n            const Icon = metric.icon;\n            const colors = colorMap[metric.color];\n\n            return (\n              <div\n                key={index}\n                className=\"group/health1 relative overflow-hidden rounded-2xl border bg-card p-6 transition-all hover:shadow-lg\"\n              >\n                <div className=\"relative\">\n                  {/* Header with icon */}\n                  <div className=\"mb-4\">\n                    <div\n                      className={cn(\n                        \"flex size-10 items-center justify-center rounded-xl\",\n                        isMinimal ? \"bg-muted\" : colors.bg\n                      )}\n                    >\n                      <Icon\n                        className={cn(\n                          \"size-5\",\n                          isMinimal ? \"text-foreground\" : colors.icon\n                        )}\n                      />\n                    </div>\n                  </div>\n\n                  {/* Label */}\n                  <p className=\"text-sm text-muted-foreground\">\n                    {metric.label}\n                  </p>\n\n                  {/* Value */}\n                  <div className=\"mt-1 flex items-baseline gap-1.5\">\n                    <span className=\"text-3xl font-bold tracking-tight\">\n                      {metric.value}\n                    </span>\n                    <span className=\"text-sm text-muted-foreground\">\n                      {metric.unit}\n                    </span>\n                  </div>\n\n                  {/* Trend */}\n                  {metric.trend && metric.trendValue && (\n                    <div className=\"mt-3 flex items-center gap-1.5\">\n                      {metric.trend === \"up\" && (\n                        <TrendingUp className=\"size-4 text-emerald-500\" />\n                      )}\n                      {metric.trend === \"down\" && (\n                        <TrendingDown className=\"size-4 text-amber-500\" />\n                      )}\n                      {metric.trend === \"stable\" && (\n                        <div className=\"size-4 flex items-center justify-center\">\n                          <div className=\"h-0.5 w-3 rounded-full bg-muted-foreground\" />\n                        </div>\n                      )}\n                      <span className=\"text-xs text-muted-foreground\">\n                        {metric.trendValue}\n                      </span>\n                    </div>\n                  )}\n                </div>\n              </div>\n            );\n          })}\n        </div>\n\n        {buttons.length > 0 && (\n          <div className=\"mt-10 flex flex-wrap justify-center gap-3\">\n            {buttons.map((button, index) => (\n              <Button key={index} variant={button.variant ?? \"default\"} asChild>\n                <Link href={button.href ?? \"#\"}>{button.label}</Link>\n              </Button>\n            ))}\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/health1.tsx"
    }
  ],
  "type": "registry:block"
}