{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"vertical-timeline-reveal","type":"registry:component","title":"Vertical Timeline Reveal","description":"A scroll-triggered vertical timeline whose dots and cards reveal in sequence.","dependencies":["framer-motion"],"registryDependencies":[],"files":[{"path":"components/viberdy/vertical-timeline-reveal.tsx","content":"\"use client\";\n\nimport { useRef } from \"react\";\nimport { motion, useInView } from \"framer-motion\";\n\ntype Step = { title: string; body: string };\n\nconst DEFAULT_STEPS: Step[] = [\n  { title: \"Idea\", body: \"Sketch the vibe, pick a direction.\" },\n  { title: \"Build\", body: \"Ship real components, not mockups.\" },\n  { title: \"Launch\", body: \"Ready for production from day one.\" },\n];\n\nfunction TimelineItem({ step, index }: { step: Step; index: number }) {\n  const ref = useRef<HTMLDivElement>(null);\n  const isInView = useInView(ref, { once: true, amount: 0.6 });\n\n  return (\n    <div ref={ref} className=\"relative flex gap-4 pb-8 last:pb-0\">\n      <div className=\"relative flex w-6 shrink-0 flex-col items-center\">\n        <motion.span\n          initial={{ scale: 0 }}\n          animate={isInView ? { scale: 1 } : {}}\n          transition={{ duration: 0.3, delay: index * 0.15, ease: [0.65, 0, 0.35, 1] }}\n          className=\"z-10 mt-1 h-3 w-3 shrink-0 rounded-full bg-red-500\"\n        />\n        <span className=\"absolute top-4 bottom-0 w-px bg-neutral-200\" />\n      </div>\n      <motion.div\n        initial={{ opacity: 0, x: -12 }}\n        animate={isInView ? { opacity: 1, x: 0 } : {}}\n        transition={{ duration: 0.4, delay: index * 0.15 + 0.1, ease: [0.16, 1, 0.3, 1] }}\n        className=\"rounded-xl border border-neutral-200 px-4 py-3\"\n      >\n        <p className=\"text-sm font-bold\">{step.title}</p>\n        <p className=\"mt-0.5 text-xs text-neutral-500\">{step.body}</p>\n      </motion.div>\n    </div>\n  );\n}\n\nexport function VerticalTimelineReveal({ steps = DEFAULT_STEPS }: { steps?: Step[] }) {\n  return (\n    <div className=\"w-full max-w-sm\">\n      {steps.map((step, i) => (\n        <TimelineItem key={step.title + i} step={step} index={i} />\n      ))}\n    </div>\n  );\n}\n","type":"registry:component","target":"components/viberdy/vertical-timeline-reveal.tsx"}],"meta":{"tier":"free","tags":["timeline","scroll","reveal","steps"],"href":"https://viberdy.dev/library/vertical-timeline-reveal","aiPrompt":"Create a React + Tailwind + Framer Motion \"vertical timeline\" component named VerticalTimelineReveal.\n\nBehavior:\n- Renders a list of steps stacked vertically, each with a small dot on a connecting vertical line on the left, and a title+body card to the right.\n- Each item is its OWN subcomponent with its own useRef + useInView(once: true) — not one shared observer for the whole list — so each dot/card animates in independently the moment ITS OWN position scrolls into view, not all at once when the first item appears.\n- The dot scales in from 0, the card fades and slides in from the left (x: -12 -> 0), each with a small index-based stagger delay so a sequence reads top-to-bottom even if several are in view simultaneously.\n- The connecting line is a continuous thin element behind the dots (position it so it doesn't extend past the last item).\n- Props: steps (array of {title, body}).\n\nStyle: compact left-aligned timeline, red dots, editorial card styling for the content blocks.\n\nOutput a single self-contained \"use client\" component.","license":"https://viberdy.dev/license"}}