Terminal
A terminal window that types its lines in view.
- 1.4 KB gzipped
- Deps: motion/react
- Reduced-motion safe
- Base UI & Radix compatible
Preview
bash
$ npx shadcn@latest add velora/marquee
✔ Checking registry…
✔ Installing dependencies…
✔ Created components/velora/marquee.tsx
Installation
pnpm dlx shadcn@latest add https://paulkeys.org/r/terminal.jsonAdds components/velora/terminal.tsx, installs motion.
Props
| Prop | Type | Default |
|---|---|---|
lines*Lines to type. Prefix with "$ " to render a prompt-colored command. | string[] | — |
title | string | "bash" |
speedms per character | number | 18 |
className | string | — |
Accessibility
- Reduced motion
- All lines render in full immediately with no typing effect and no blinking cursor.
- Keyboard
- Decorative — nothing to operate.
- Screen readers
- The full lines are always available as visually hidden text; the typed visual layer is aria-hidden.