Terminal Window

Terminal window frame with traffic light dots, a title bar and a monospace body for commands and output. A Tailwind block for install steps, CLI docs and demos.

src/registry/ui/terminal-window.tsx/r/terminal-window.json

Installation#

bash
npx shadcn@latest add @minidev/terminal-window

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-window.json

Usage#

tsx
import { TerminalWindow } from "@/components/ui/terminal-window"

export function Example() {
  return (
    <TerminalWindow>{`$ npm run audit\nAUDIT PASS`}</TerminalWindow>
  )
}

API reference#

TerminalWindow props
PropTypeDefault
titlestring"Terminal"
childrenReact.ReactNode-
classNamestring-

Examples#

All Developer tool UI components for React