Skip to content
VenusUI
Get started

Terminal

A terminal window that types commands and prints their output when it scrolls into view.

Preview

Installation

npx shadcn@latest add @venusui/terminal

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/terminal.tsx

Usage

The code behind the preview above.

terminal-demo.tsx

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

export default function TerminalDemo() {
  return (
    <Terminal
      className="w-full max-w-xl"
      lines={[
        { type: "command", text: "npx create-next-app@latest my-app" },
        { type: "success", text: "Created a new Next.js app in ./my-app" },
        { type: "command", text: "cd my-app && npm run dev" },
        { type: "output", text: "Ready on http://localhost:3000", delay: 600 },
      ]}
    />
  )
}

API reference

PropTypeDefaultDescription
lines{ type: "command" | "output" | "success"; text: string; delay?: number }[]—The session. Commands are typed; other lines appear. Required.
titlestring"Terminal"Title in the window bar.
typingSpeednumber30Milliseconds per typed character.

Only the props above, plus className.

Requirements

  • lucide-react (the CLI installs it), React 19 and Tailwind CSS v4.

Customization

  • Show real output from your CLI, not invented results.
  • Use delay on a line to pause before it, e.g. while something builds.

Accessibility

  • Screen readers get the whole session as text at once.
  • With reduced motion the finished session shows immediately. A Replay button appears when it finishes.

Troubleshooting

It never starts.
It starts when half of it is on screen; make sure it isn’t hidden.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

Blur Text

Text animations

Text whose words rise out of a blur one after another.

Loading preview

Gradient Text

Text animations

Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.

Loading preview

Notification Stack

Data display

Phone-style stacked notifications with frosted glass that fan out into a list on hover or click.