nexus-ui

Interactive Terminal

Component 15

About

A macOS-style terminal window that types out commands and reveals output automatically, with cursor blink, progress/spinner lines, and optional keyboard sound effects.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Interactive Terminal to your project and fits it to your theme.

Code

How Interactive Terminal is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Terminal from "@/components/ui/terminal";

export default function TerminalDemo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <div className="w-full max-w-2xl">
        <Terminal
          username="guest"
          hostname="nexus"
          enableSound={false}
          commands={[
            {
              input: "npx create-nexus-app@latest my-app",
              runDelayMs: 900,
              output: [
                { text: "Creating a new Nexus app in ./my-app", tone: "info" },
                { text: "Installing dependencies...", tone: "muted" },
                { text: "Success! Your app is ready.", tone: "success" },
              ],
            },
            {
              input: "cd my-app && npm run dev",
              runDelayMs: 600,
              output: [
                { text: "Local:   http://localhost:3000", tone: "info" },
                { text: "Ready in 340 ms", tone: "success" },
              ],
            },
          ]}
        />
      </div>
    </div>
  );
}

Dependencies

More by nexus-ui

View all
  • Circular Carousel

    Circular Carousel

    1.2K
  • Images Badge

    Images Badge

    965
  • Chat Messages

    Chat Messages

    302
  • Shooting Stars Grid

    Shooting Stars Grid

    156
  • Infinite Moving Cards

    Infinite Moving Cards

    148
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    145
  • Logo Clouds

    Logo Clouds

    103
  • Interactive Starfield Hero

    Interactive Starfield Hero

    86