{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature28",
  "title": "Process Timeline with Duration Badges",
  "description": "Responsive timeline showing sequential steps with icons, descriptions, and time estimates (horizontal on desktop, vertical on mobile). Perfect for onboarding flows, how-to guides, or getting-started sections.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/feature28/feature28.tsx",
      "content": "\"use client\";\n\nimport { Check, Circle, Clock, Rocket, Settings, Zap } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface TimelineStep {\n  id: string;\n  icon?: React.ReactNode;\n  title: string;\n  description?: string;\n  duration?: 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 Feature28Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  steps?: TimelineStep[];\n  buttons?: ButtonItem[];\n  className?: string;\n}\n\nexport const feature28Demo: Feature28Props = {\n  badge: { label: \"How it works\", variant: \"default\" },\n  heading: \"From signup to success in 4 steps\",\n  description:\n    \"A streamlined onboarding process that gets you up and running fast, without sacrificing depth or flexibility.\",\n  steps: [\n    {\n      id: \"step-1\",\n      icon: <Rocket className=\"size-5\" />,\n      title: \"Create your account\",\n      description:\n        \"Sign up with email or SSO. No credit card required to get started.\",\n      duration: \"2 min\",\n    },\n    {\n      id: \"step-2\",\n      icon: <Settings className=\"size-5\" />,\n      title: \"Connect your tools\",\n      description:\n        \"Integrate with your existing stack. We support 50+ popular services out of the box.\",\n      duration: \"5 min\",\n    },\n    {\n      id: \"step-3\",\n      icon: <Zap className=\"size-5\" />,\n      title: \"Configure workflows\",\n      description:\n        \"Set up automations using our visual builder. No code required.\",\n      duration: \"10 min\",\n    },\n    {\n      id: \"step-4\",\n      icon: <Check className=\"size-5\" />,\n      title: \"Go live\",\n      description:\n        \"Deploy to production with one click. Monitor results in real-time.\",\n      duration: \"1 min\",\n    },\n  ],\n  buttons: [\n    { id: \"btn-1\", label: \"Get started free\", href: \"https://beste.co\" },\n    {\n      id: \"btn-2\",\n      label: \"Watch walkthrough\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n};\n\nexport function Feature28({\n  badge,\n  heading,\n  description,\n  steps = [],\n  buttons = [],\n  className,\n}: Feature28Props) {\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 md:mb-16 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 text-balance md:text-5xl\">\n                {heading}\n              </h2>\n            )}\n            {description && (\n              <p className=\"mt-6 text-balance text-base md:text-lg text-muted-foreground\">\n                {description}\n              </p>\n            )}\n          </div>\n        )}\n\n        {/* Timeline - Desktop */}\n        <div className=\"hidden md:block\">\n          <div className=\"relative\">\n            {/* Horizontal line */}\n            <div className=\"absolute left-0 right-0 top-6 h-0.5 bg-border\" />\n\n            <div\n              className={cn(\"grid gap-4\", {\n                \"grid-cols-2\": steps.length === 2,\n                \"grid-cols-3\": steps.length === 3,\n                \"grid-cols-4\": steps.length === 4,\n                \"grid-cols-5\": steps.length >= 5,\n              })}\n            >\n              {steps.map((step, index) => (\n                <div key={step.id} className=\"relative\">\n                  {/* Step number circle */}\n                  <div className=\"relative z-10 mx-auto flex size-12 items-center justify-center rounded-full border-2 border-border bg-background\">\n                    {step.icon || (\n                      <span className=\"text-sm font-semibold\">{index + 1}</span>\n                    )}\n                  </div>\n\n                  {/* Content */}\n                  <div className=\"mt-6 text-center\">\n                    <h3 className=\"text-lg text-balance font-semibold\">\n                      {step.title}\n                    </h3>\n                    {step.description && (\n                      <p className=\"mt-2 text-sm text-balance text-muted-foreground\">\n                        {step.description}\n                      </p>\n                    )}\n                    {step.duration && (\n                      <div className=\"mt-3 inline-flex items-center gap-1.5 rounded-full bg-muted px-3 py-1 text-xs text-muted-foreground\">\n                        <Clock className=\"size-3\" />\n                        {step.duration}\n                      </div>\n                    )}\n                  </div>\n                </div>\n              ))}\n            </div>\n          </div>\n        </div>\n\n        {/* Timeline - Mobile */}\n        <div className=\"md:hidden\">\n          <div className=\"relative space-y-3 pl-8\">\n            {/* Vertical line */}\n            <div className=\"absolute bottom-0 left-3 top-0 w-[1px] bg-border\" />\n\n            {steps.map((step, index) => (\n              <div key={step.id} className=\"relative\">\n                {/* Step circle */}\n                <div className=\"absolute -left-8 flex size-6 items-center justify-center rounded-full border-1 sm:border-2 border-border bg-background\">\n                  {step.icon ? (\n                    <div className=\"scale-60\">{step.icon}</div>\n                  ) : (\n                    <Circle className=\"size-2 fill-primary text-primary\" />\n                  )}\n                </div>\n\n                {/* Content */}\n                <div className=\"rounded-lg border bg-muted p-4\">\n                  <div className=\"flex items-start justify-between gap-3\">\n                    <div>\n                      <span className=\"text-xs font-medium text-muted-foreground\">\n                        Step {index + 1}\n                      </span>\n                      <h3 className=\"mt-1 font-semibold\">{step.title}</h3>\n                    </div>\n                    {step.duration && (\n                      <div className=\"inline-flex shrink-0 items-center gap-1 rounded-full bg-background px-2 py-0.5 text-xs text-muted-foreground\">\n                        <Clock className=\"size-3\" />\n                        {step.duration}\n                      </div>\n                    )}\n                  </div>\n                  {step.description && (\n                    <p className=\"mt-2 text-sm text-muted-foreground\">\n                      {step.description}\n                    </p>\n                  )}\n                </div>\n              </div>\n            ))}\n          </div>\n        </div>\n\n        {buttons.length > 0 && (\n          <div className=\"mt-8 md:mt-12 flex flex-wrap justify-center gap-3\">\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    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/feature28.tsx"
    }
  ],
  "type": "registry:block"
}