{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "health2",
  "title": "Wellness Goals Tracker",
  "description": "Daily wellness goals tracker with progress bars showing current vs target for water intake, steps, mindfulness, and meals. Perfect for habit tracking and fitness apps.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/health2/health2.tsx",
      "content": "\"use client\";\n\nimport { Apple, Brain, Droplets, Footprints, type LucideIcon } 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 WellnessGoal {\n  icon: LucideIcon;\n  title: string;\n  current: number;\n  target: number;\n  unit: string;\n}\n\ninterface ButtonItem {\n  label: string;\n  href?: string;\n  variant?: \"default\" | \"secondary\" | \"outline\" | \"ghost\";\n}\n\ninterface Health2Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  goals?: WellnessGoal[];\n  buttons?: ButtonItem[];\n  columns?: 3 | 4 | \"3\" | \"4\";\n  className?: string;\n}\n\nexport const health2Demo: Health2Props = {\n  badge: { label: \"Daily Goals\", variant: \"outline\" },\n  heading: \"Track your wellness journey\",\n  description:\n    \"Set daily goals and watch your healthy habits grow. Small steps lead to big changes.\",\n  goals: [\n    {\n      icon: Droplets,\n      title: \"Water Intake\",\n      current: 6,\n      target: 8,\n      unit: \"glasses\",\n    },\n    {\n      icon: Footprints,\n      title: \"Daily Steps\",\n      current: 7500,\n      target: 10000,\n      unit: \"steps\",\n    },\n    {\n      icon: Brain,\n      title: \"Mindfulness\",\n      current: 15,\n      target: 20,\n      unit: \"minutes\",\n    },\n    {\n      icon: Apple,\n      title: \"Healthy Meals\",\n      current: 3,\n      target: 3,\n      unit: \"meals\",\n    },\n  ],\n  buttons: [\n    { label: \"Update goals\", href: \"https://beste.co\" },\n    {\n      label: \"View history\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n};\n\nexport function Health2({\n  badge,\n  heading,\n  description,\n  goals = [],\n  buttons = [],\n  columns = 4,\n  className,\n}: Health2Props) {\n  const columnCount = Number(columns);\n  if (goals.length === 0) return null;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl 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\"}>{badge.label}</Badge>\n              </div>\n            )}\n            {heading && (\n              <h2 className=\"text-3xl font-semibold md:text-5xl text-balance\">{heading}</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          {goals.map((goal, index) => {\n            const Icon = goal.icon;\n            const percentage = Math.min((goal.current / goal.target) * 100, 100);\n\n            return (\n              <div\n                key={index}\n                className=\"group/health2 rounded-2xl border bg-card p-6 hover:shadow-lg\"\n              >\n                {/* Icon */}\n                <div className=\"mb-4\">\n                  <div className=\"flex size-12 items-center justify-center rounded-xl bg-muted\">\n                    <Icon className=\"size-6 text-foreground\" />\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h3 className=\"font-semibold\">{goal.title}</h3>\n\n                {/* Progress text */}\n                <div className=\"mt-2 flex items-baseline gap-1\">\n                  <span className=\"text-2xl font-bold\">{goal.current.toLocaleString()}</span>\n                  <span className=\"text-muted-foreground\">\n                    / {goal.target.toLocaleString()} {goal.unit}\n                  </span>\n                </div>\n\n                {/* Progress bar */}\n                <div className=\"mt-4 h-2 rounded-full bg-muted\">\n                  <div\n                    className=\"h-full rounded-full bg-foreground\"\n                    style={{ width: `${percentage}%` }}\n                  />\n                </div>\n\n                {/* Percentage */}\n                <p className=\"mt-2 text-sm text-muted-foreground\">\n                  {Math.round(percentage)}% completed\n                </p>\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/health2.tsx"
    }
  ],
  "type": "registry:block"
}