{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature23",
  "title": "Quality Scorecard Grid",
  "description": "Six-card grid displaying quality metrics with icons, progress bars, and numeric scores for performance, security, and reliability. Perfect for system health dashboards or compliance overviews.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "progress"
  ],
  "files": [
    {
      "path": "registry/feature23/feature23.tsx",
      "content": "\"use client\";\n\nimport { Bug, Database, Gauge, Repeat, Shield, Users } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { Progress } from \"@/components/ui/progress\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Area {\n  id: string;\n  icon?: React.ReactNode;\n  title: string;\n  description?: string;\n  score: number;\n  footnote?: string;\n}\n\ninterface ButtonItem {\n  id: string;\n  label: string;\n  href?: string;\n  variant?:\n    | \"default\"\n    | \"secondary\"\n    | \"outline\"\n    | \"ghost\"\n    | \"link\"\n    | \"destructive\";\n}\n\ninterface Feature23Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  areas?: Area[];\n  footerNote?: string;\n  buttons?: ButtonItem[];\n  className?: string;\n}\n\nexport const feature23Demo: Feature23Props = {\n  badge: { label: \"Quality\", variant: \"secondary\" },\n  heading: \"Make quality visible\",\n  description:\n    \"A lightweight scoreboard that turns 'it feels better' into measurable signals your team can trust.\",\n  areas: [\n    {\n      id: \"area-1\",\n      icon: <Gauge className=\"size-5\" />,\n      title: \"Performance\",\n      description:\n        \"Track Core Web Vitals and spot regressions before they hit customers.\",\n      score: 92,\n      footnote: \"Based on last 7 days\",\n    },\n    {\n      id: \"area-2\",\n      icon: <Shield className=\"size-5\" />,\n      title: \"Security posture\",\n      description:\n        \"Surface dependency risk, misconfigurations, and access anomalies.\",\n      score: 88,\n      footnote: \"Weekly scan\",\n    },\n    {\n      id: \"area-3\",\n      icon: <Bug className=\"size-5\" />,\n      title: \"Reliability\",\n      description:\n        \"Monitor incidents, error budgets, and alert fatigue in one place.\",\n      score: 84,\n      footnote: \"SLO window\",\n    },\n    {\n      id: \"area-4\",\n      icon: <Users className=\"size-5\" />,\n      title: \"UX clarity\",\n      description:\n        \"Validate copy, hierarchy, and accessibility without slowing releases.\",\n      score: 90,\n      footnote: \"A11y checks enabled\",\n    },\n    {\n      id: \"area-5\",\n      icon: <Database className=\"size-5\" />,\n      title: \"Data accuracy\",\n      description:\n        \"Catch schema drift and broken events with automated validation.\",\n      score: 86,\n      footnote: \"Event coverage\",\n    },\n    {\n      id: \"area-6\",\n      icon: <Repeat className=\"size-5\" />,\n      title: \"Release hygiene\",\n      description:\n        \"Standardize reviews, rollbacks, and changelogs across environments.\",\n      score: 80,\n      footnote: \"Per deploy\",\n    },\n  ],\n  footerNote:\n    \"Tip: keep scores directional—use them to spot trends, not to blame teams.\",\n  buttons: [\n    {\n      id: \"btn-1\",\n      label: \"See dashboard sample\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n};\n\nconst clampScore = (value: unknown) => {\n  const parsed = typeof value === \"number\" ? value : Number(value);\n  if (Number.isNaN(parsed)) return 0;\n  return Math.max(0, Math.min(100, Math.round(parsed)));\n};\n\nexport function Feature23({\n  badge,\n  heading,\n  description,\n  areas = [],\n  footerNote,\n  buttons = [],\n  className,\n}: Feature23Props) {\n  if (areas.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-12 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-3xl font-semibold md:text-5xl\">{heading}</h2>\n            )}\n            {description && (\n              <p className=\"mt-4 text-base md:text-lg text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n\n        <div className=\"grid gap-4 md:grid-cols-2 lg:grid-cols-3\">\n          {areas.map((area) => {\n            const score = clampScore(area.score);\n            return (\n              <div\n                key={area.id}\n                className=\"flex flex-col rounded-lg border bg-muted p-6 transition-transform duration-300 hover:-translate-y-0.5\"\n              >\n                <div className=\"flex flex-1 items-start justify-between gap-4\">\n                  <div className=\"flex items-start gap-3\">\n                    {area.icon && (\n                      <span className=\"inline-flex size-10 shrink-0 items-center justify-center rounded-lg border bg-background\">\n                        {area.icon}\n                      </span>\n                    )}\n                    <div className=\"min-w-0\">\n                      <h3 className=\"text-base font-semibold\">{area.title}</h3>\n                      {area.description && (\n                        <p className=\"mt-1 text-sm text-muted-foreground\">\n                          {area.description}\n                        </p>\n                      )}\n                    </div>\n                  </div>\n                  <div className=\"shrink-0 text-xl font-semibold\">{score}</div>\n                </div>\n\n                <div className=\"mt-auto pt-4 space-y-2\">\n                  <Progress value={score} />\n                  {area.footnote && (\n                    <p className=\"text-xs text-muted-foreground\">\n                      {area.footnote}\n                    </p>\n                  )}\n                </div>\n              </div>\n            );\n          })}\n        </div>\n\n        {(footerNote || buttons.length > 0) && (\n          <div className=\"mx-auto mt-8 md:mt-12 flex max-w-3xl flex-col items-center gap-4 text-center\">\n            {footerNote && (\n              <p className=\"text-sm text-muted-foreground mb-2\">{footerNote}</p>\n            )}\n            {buttons.length > 0 && (\n              <div className=\"flex flex-wrap justify-center gap-2\">\n                {buttons.map((button) => (\n                  <Button\n                    key={button.id}\n                    variant={button.variant ?? \"default\"}\n                    asChild\n                  >\n                    <Link href={button.href ?? \"#\"}>{button.label}</Link>\n                  </Button>\n                ))}\n              </div>\n            )}\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/feature23.tsx"
    }
  ],
  "type": "registry:block"
}