terminal-demo

PreviousNext

Example showing a terminal-demo component.

Docs
eldorauiexample

Preview

Loading preview…
registry/example/terminal-demo.tsx
import Terminal from "@/registry/eldoraui/terminal"

export default function TerminalDemo() {
  return (
    <main className="flex min-h-[60vh] items-center justify-center p-6">
      <div className="w-full max-w-3xl">
        <Terminal
          command="npx shadcn@latest add 'https://eldoraui.site/r/terminal'"
          steps={[
            { text: "~ Project name", bold: true },
            { text: " | terminal-demo" },
            { text: " | cd terminal-demo" },
            { text: "~ Installing UI components", bold: true },
            { text: " | ✓ eldoraui/terminal" },
          ]}
          pulseInterval={100}
          showLocalhost={true}
          hostBarTitle="localhost:3000"
          hostMessage="New App Created!"
        />
      </div>
    </main>
  )
}

Installation

npx shadcn@latest add @eldoraui/terminal-demo

Usage

import { TerminalDemo } from "@/components/terminal-demo"
<TerminalDemo />