You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"usageCode": "import { MagneticLettersHero } from \"@/components/ui/hero-magnetic-letters\";\n\nexport default function Hero() {\n return <MagneticLettersHero headline=\"Motion, where it matters.\" />;\n}"
3314
+
},
3315
+
{
3316
+
"slug": "hero-terminal",
3317
+
"name": "Terminal Hero",
3318
+
"description": "A 'code-builds-the-page' hero: a headline above a macOS-style terminal that types your install commands and prints their output. Ships the reusable Terminal window too, with reduced-motion, in-view triggering, replay, copy, and keystroke sound.",
3319
+
"icon": "Terminal",
3320
+
"category": "Hero",
3321
+
"kind": "block",
3322
+
"addedAt": "2026-05-28",
3323
+
"props": [
3324
+
{
3325
+
"name": "children",
3326
+
"type": "ReactNode",
3327
+
"description": "Slotted hero content above the terminal (headline / subhead / CTAs). When omitted, a default composition renders."
3328
+
},
3329
+
{
3330
+
"name": "commands",
3331
+
"type": "string[]",
3332
+
"description": "Commands typed out sequentially in the terminal. Defaults to a shadcn init/install sequence."
3333
+
},
3334
+
{
3335
+
"name": "outputs",
3336
+
"type": "Record<number, string[]>",
3337
+
"default": "{}",
3338
+
"description": "Output lines printed after a command finishes typing, keyed by the command's index."
3339
+
},
3340
+
{
3341
+
"name": "username",
3342
+
"type": "string",
3343
+
"default": "\"you\"",
3344
+
"description": "Name shown highlighted in the shell prompt (renders as `username:~$`)."
3345
+
},
3346
+
{
3347
+
"name": "title",
3348
+
"type": "string",
3349
+
"default": "\"zsh — your-project\"",
3350
+
"description": "Text shown centered in the window title bar."
3351
+
},
3352
+
{
3353
+
"name": "typingSpeed",
3354
+
"type": "number",
3355
+
"default": "50",
3356
+
"description": "Typing speed in milliseconds per character."
3357
+
},
3358
+
{
3359
+
"name": "delayBetweenCommands",
3360
+
"type": "number",
3361
+
"default": "800",
3362
+
"description": "Pause in milliseconds after a command's output before the next command starts."
3363
+
},
3364
+
{
3365
+
"name": "initialDelay",
3366
+
"type": "number",
3367
+
"default": "500",
3368
+
"description": "Delay in milliseconds before the first command begins typing."
3369
+
},
3370
+
{
3371
+
"name": "enableSound",
3372
+
"type": "boolean",
3373
+
"default": "false",
3374
+
"description": "Play a subtle keystroke click on each character via the Web Audio API. Defaults off in the hero to avoid autoplay audio."
3375
+
},
3376
+
{
3377
+
"name": "loop",
3378
+
"type": "boolean",
3379
+
"default": "false",
3380
+
"description": "Restart the typing sequence from the top once it finishes."
3381
+
},
3382
+
{
3383
+
"name": "className",
3384
+
"type": "string",
3385
+
"description": "Extra classes on the outer `<section>`."
"overview": "Per-glyph cursor-tracking hero. The headline reads as a normal h1 to screen readers (aria-label on the wrapper, aria-hidden on each animated span), so accessibility is preserved despite the per-letter wrapping.",
1118
1118
"scenarios": []
1119
+
},
1120
+
"hero-terminal": {
1121
+
"slug": "hero-terminal",
1122
+
"overview": "TerminalHero pairs a headline with a live terminal that types your getting-started commands and prints their output — a high-conversion 'see it work' pattern for landing pages. The standalone `Terminal` window is exported from the same file for reuse elsewhere. The animation starts when the hero scrolls into view, respects `prefers-reduced-motion` (rendering the finished transcript instantly), and exposes copy + replay controls. The animated transcript is `aria-hidden` while a screen-reader-only copy carries the real content.",
Copy file name to clipboardExpand all lines: apps/www/public/r/registry.json
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1144,6 +1144,24 @@
1144
1144
}
1145
1145
]
1146
1146
},
1147
+
{
1148
+
"name": "hero-terminal",
1149
+
"type": "registry:ui",
1150
+
"title": "Terminal Hero",
1151
+
"description": "A 'code-builds-the-page' hero: a headline above a macOS-style terminal that types your install commands and prints their output. Ships the reusable Terminal window too, with reduced-motion, in-view triggering, replay, copy, and keystroke sound.",
0 commit comments