{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "split-text", "type": "registry:ui", "title": "Split Text", "description": "Word-by-word staggered text reveal.", "dependencies": [ "motion" ], "registryDependencies": [], "files": [ { "path": "registry/starkui/split-text.tsx", "content": "\"use client\";\n\nimport { motion } from \"motion/react\";\nimport { cn } from \"@/lib/utils\";\n\nexport function SplitText({\n text,\n delay = 0,\n stagger = 0.04,\n className,\n}: {\n text: string;\n delay?: number;\n stagger?: number;\n className?: string;\n}) {\n const words = text.split(\" \");\n return (\n \n {words.map((word, i) => (\n \n \n {word}\n {i < words.length - 1 ? \" \" : \"\"}\n \n \n ))}\n \n );\n}\n", "type": "registry:ui", "target": "components/ui/split-text.tsx" } ] }