UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "typing-animation-demo-8",
"type": "registry:example",
"title": "Typing Animation Cursor Styles",
"description": "Example showing different cursor styles (line, block, underscore).",
"registryDependencies": [
"@magicui/typing-animation"
],
"files": [
{
"path": "registry/example/typing-animation-demo-8.tsx",
"content": "import { TypingAnimation } from \"@/registry/magicui/typing-animation\"\n\nexport default function Component() {\n return (\n <div className=\"flex-1 space-y-8\">\n <div>\n <p className=\"text-muted-foreground mb-2 text-sm\">\n Line cursor (default)\n </p>\n <TypingAnimation\n words={[\"Line cursor\"]}\n cursorStyle=\"line\"\n loop\n className=\"text-4xl font-bold\"\n />\n </div>\n <div>\n <p className=\"text-muted-foreground mb-2 text-sm\">\n Block cursor (VSCode style)\n </p>\n <TypingAnimation\n words={[\"Block cursor\"]}\n cursorStyle=\"block\"\n loop\n className=\"text-4xl font-bold\"\n />\n </div>\n <div>\n <p className=\"text-muted-foreground mb-2 text-sm\">Underscore cursor</p>\n <TypingAnimation\n words={[\"Underscore cursor\"]}\n cursorStyle=\"underscore\"\n loop\n className=\"text-4xl font-bold\"\n />\n </div>\n </div>\n )\n}\n",
"type": "registry:example"
}
]
}