{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "staggered-hero-shadcnui", "type": "registry:page", "title": "Staggered Text Hero", "description": "Hero section with staggered text reveal", "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/page/hero/staggered-text.tsx", "content": "\"use client\";\n\nimport { motion, type Variants } from \"framer-motion\";\n\nconst text = [\"Build\", \"beautiful\", \"experiences\"];\n\nconst heroContainer: Variants = {\n hidden: {},\n visible: {\n transition: {\n staggerChildren: 0.3,\n },\n },\n};\n\nconst headingVariant: Variants = {\n hidden: { opacity: 0, y: 20 },\n visible: {\n opacity: 1,\n y: 0,\n transition: {\n duration: 0.5,\n ease: \"easeOut\",\n staggerChildren: 0.12,\n when: \"beforeChildren\",\n },\n },\n};\n\nexport function StaggeredHero() {\n const item: Variants = {\n hidden: { opacity: 0, y: 20 },\n visible: {\n opacity: 1,\n y: 0,\n transition: {\n duration: 0.5,\n ease: \"easeOut\",\n },\n },\n };\n\n return (\n
\n \n \n \n {text.map((word, index) => (\n \n {word}\n \n ))}\n \n {text.join(\" \")}\n \n \n With smooth animations\n \n \n
\n );\n}\n", "type": "registry:page", "target": "components/uitripled/staggered-hero-shadcnui.tsx" } ] }