Terminal

Motion

Terminal is a React animated terminal window that types commands and prints output lines in sequence, with colored line kinds, a blinking cursor and a replay button.

src/registry/premium/terminal.tsx/r/terminal.json

Installation#

bash
npx shadcn@latest add @minidev/terminal

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/terminal.json

Usage#

tsx
import { Terminal } from "@/components/ui/terminal"

export function Example() {
  return <Terminal />
}

API reference#

Terminal props
PropTypeDefault
linesTerminalLine[]SAMPLE_LINES
titlestring"Terminal"
promptstring"❯"
typingSpeednumber26
lineDelaynumber160
commandDelaynumber600
loopbooleanfalse
replaybooleantrue
appearance"dark" | "auto""dark"
onComplete() => void-
classNamestring-

Dependencies#

npm

lucide-reactmotion

Built from

No other MiniDev files
All Developer tool UI components for React