{ "name": "steps", "type": "registry:ui", "files": [ { "path": "components/ui/steps.tsx", "content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface StepsProps extends React.HTMLAttributes {\n currentStep?: number\n}\n\nconst Steps = React.forwardRef(\n ({ className, currentStep = 0, children, ...props }, ref) => {\n const steps = React.Children.toArray(children)\n return (\n \n {steps.map((child, index) => (\n \n {index > 0 && (\n \n )}\n currentStep &&\n \"bg-white/[0.03] text-muted-foreground\"\n )}\n >\n {index + 1}\n \n \n ))}\n \n )\n }\n)\nSteps.displayName = \"Steps\"\n\nconst Step = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n))\nStep.displayName = \"Step\"\n\nexport { Steps, Step }\n", "type": "registry:ui" } ], "registryDependencies": [ "utils" ] }