Introducing Nuvyx UI v1.0.0

Docs
Interactive Terminal

Interactive Terminal

A customizable terminal component with animated output and command processing.

Run:deploy --production

Installation

Examples

Manually type command

Run:brew --coffee latte

Usage

import { InteractiveTerminal } from "@/components/ui/terminal";
import { Terminal } from "lucide-react";
// Basic usage with default theme
<InteractiveTerminal
  command="npm install"
  steps={["Installing packages...", "Resolving dependencies..."]}
  finalMessage="Installation complete!"
/>
 
// Custom styling with different variant
<InteractiveTerminal
  command="deploy --production"
  icon={<Terminal className="mr-2" />}
  steps={[
    "Building project...",
    "Running tests...",
    "Optimizing assets...",
    "Deploying to production..."
  ]}
  finalMessage="Deployment successful!"
  variant="dark"
  stepDelay={800}
/>
 
// Auto-executing command with repeat functionality
<InteractiveTerminal
  command="ping server.example.com"
  steps={["Sending packet...", "Waiting for response..."]}
  finalMessage="Response received: 42ms"
  autoExecute
  repeat
  repeatDelay={2000}
/>
 
// Custom theme and styling
<InteractiveTerminal
  command="hack --mainframe"
  steps={[
    "Bypassing firewall...",
    "Cracking encryption...",
    "Accessing mainframe..."
  ]}
  finalMessage="Access granted!"
  variant="matrix"
  promptSymbol=">"
  className="border border-green-500"
/>

Props

PropTypeDefaultDescription
commandstring"help"Command that users need to enter to trigger the terminal sequence
stepsstring[]["Processing command"]Array of processing steps to display sequentially
finalMessagestring"Command executed successfully!"Final message to display after all processing steps
stepDelaynumber1000Delay between processing steps in milliseconds
typingDelaynumber100Delay between individual keystrokes when animating typing
iconReact.ReactNode<TerminalIcon />Icon to display in the command info bar
promptSymbolstring"$"Terminal prompt symbol displayed before user input
inputPlaceholderstring"Type your command here"Placeholder text for the input field
autoExecutebooleanfalseEnables automatic command execution without waiting for user input
repeatbooleanfalseWhether to repeat the entire command sequence automatically
repeatDelaynumber3000Delay between repetitions when repeat is enabled
classNamestringundefinedAdditional CSS class names to apply to the terminal container
variantstring"default"Visual style variant (default, dark, matrix, retro, custom)
customTheme{ container?: string; header?: string; output?: string; button?: string }{}Custom CSS theme overrides for container, header, output, and button