{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"stacked-type-hero","type":"registry:component","title":"Stacked Type Hero","description":"Oversized, tightly-stacked headline words that reveal in on mount — big type as sculpture.","dependencies":["framer-motion"],"registryDependencies":[],"files":[{"path":"components/viberdy/stacked-type-hero.tsx","content":"\"use client\";\n\nimport { motion } from \"framer-motion\";\n\nconst DEFAULT_WORDS = \"Type, Lettering, Sections, Components, Patterns\";\n\nexport function StackedTypeHero({\n  words = DEFAULT_WORDS,\n  accentWord = \"Sections\",\n  align = \"left\",\n}: {\n  /** Comma-separated. One stacked line per word. */\n  words?: string;\n  /** Whichever line matches gets the accent colour. */\n  accentWord?: string;\n  align?: \"left\" | \"center\";\n}) {\n  const lines = words\n    .split(\",\")\n    .map((w) => w.trim())\n    .filter(Boolean);\n\n  return (\n    <div\n      className={\n        \"flex flex-col gap-1 py-10 \" +\n        (align === \"center\" ? \"items-center text-center\" : \"items-start text-left\")\n      }\n    >\n      {lines.map((word, i) => (\n        <motion.span\n          key={word}\n          initial={{ opacity: 0, y: 24 }}\n          animate={{ opacity: 1, y: 0 }}\n          transition={{ delay: i * 0.06, duration: 0.5, ease: [0.16, 1, 0.3, 1] }}\n          className={\n            \"font-black leading-[0.9] tracking-tight \" +\n            (word === accentWord ? \"text-red-500\" : \"text-white\")\n          }\n          style={{ fontSize: \"clamp(2rem, 8vw, 6rem)\" }}\n        >\n          {word}\n        </motion.span>\n      ))}\n    </div>\n  );\n}\n","type":"registry:component","target":"components/viberdy/stacked-type-hero.tsx"}],"meta":{"tier":"free","tags":["hero","typography","editorial","headline"],"href":"https://viberdy.dev/library/stacked-type-hero","aiPrompt":"Create a React + Tailwind + Framer Motion \"stacked type hero\" section named StackedTypeHero.\n\nBehavior:\n- Renders a vertical stack of large, bold words (editorial / oversized type as sculpture), each on its own line, extremely tight leading (leading-[0.9]) and tight tracking.\n- Each word fades and slides up into place on mount, staggered by ~60ms per word, using ease [0.16, 1, 0.3, 1].\n- One designated \"accent\" word renders in a strong red (#FF2D2D); all others render in white/near-white against a cool gray background.\n- Font size should scale fluidly with viewport using clamp().\n\nStyle: font-black weight, tight tracking, no additional decoration — the typography itself is the visual. Feels like an editorial magazine cover, not a SaaS hero.\n\nOutput a single self-contained component using framer-motion's motion.span, word list as a simple array constant.","license":"https://viberdy.dev/license"}}