Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "typewriter",
"title": "Typewriter",
"description": "Character-by-character text reveal with a deterministic blinking cursor.",
"dependencies": ["remotion"],
"registryDependencies": ["@remocn/remocn-ui", "@remocn/caret"],
"files": [
{
"path": "registry/remocn/typewriter/index.tsx",
"content": "\"use client\";\n\nimport { Caret } from \"@/components/remocn/caret\";\nimport { useTypewriter } from \"@/lib/remocn-ui\";\n\nexport interface TypewriterProps {\n text: string;\n cursor?: boolean;\n charsPerSecond?: number;\n speed?: number;\n fontSize?: number;\n color?: string;\n cursorColor?: string;\n fontWeight?: number;\n className?: string;\n}\n\nexport function Typewriter({\n text,\n cursor = true,\n charsPerSecond = 22,\n speed = 1,\n fontSize = 48,\n color = \"#171717\",\n cursorColor = \"#171717\",\n fontWeight = 600,\n className,\n}: TypewriterProps) {\n const tw = useTypewriter(text, { cps: charsPerSecond, speed });\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n }}\n >\n {tw.text}\n {cursor && (\n <Caret\n color={cursorColor}\n blink={!tw.typing}\n speed={speed}\n radius={0}\n style={{\n width: \"0.08em\",\n height: \"1em\",\n marginLeft: \"0.04em\",\n verticalAlign: \"text-bottom\",\n }}\n />\n )}\n </span>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/typewriter.tsx"
}
],
"type": "registry:component"
}