Terminal
A customizable command-line preview block supporting macOS zsh, Windows PowerShell, CMD, Ubuntu, and Default terminal variants.
import
import { Terminal, TerminalLine } from "@/components/ui/terminal/terminal";$
npx @bloomui-react/cli add terminalterminal.tsx
Default Variant
Neutral dark terminal window with traffic lights and copy button.
variant?:
default | mac | powershell | cmd | ubuntuTerminal
$npx bloom-ui init
Initializing design system tokens...
✔Design system tokens initialized successfully
$npx bloom-ui add terminal button card
Downloading component source code...
✔Added 3 components to components/ui
macOS Variant
Authentic macOS zsh terminal aesthetic with red/yellow/green window control dots.
variant:
maczsh — 80x24
user@macbook ~ %npx bloom-ui init
Initializing design system tokens...
✔Design system tokens initialized successfully
user@macbook ~ %npx bloom-ui add terminal button card
Downloading component source code...
✔Added 3 components to components/ui
Windows PowerShell Variant
Classic blue theme with yellow command highlights and PS prompt.
variant:
powershellPS
Windows PowerShellPS C:\Users\Bloom>npx bloom-ui init
Initializing design system tokens...
✔Design system tokens initialized successfully
PS C:\Users\Bloom>npx bloom-ui add terminal button card
Downloading component source code...
✔Added 3 components to components/ui
Windows Command Prompt (CMD) Variant
Minimal black theme inspired by traditional Windows cmd.exe.
variant:
cmdc:\
Command PromptC:\Users\Bloom>npx bloom-ui init
Initializing design system tokens...
✔Design system tokens initialized successfully
C:\Users\Bloom>npx bloom-ui add terminal button card
Downloading component source code...
✔Added 3 components to components/ui
Ubuntu Terminal Variant
Deep purple Ubuntu GNOME Terminal theme with bash prompt styling.
variant:
ubuntubloom@ubuntu: ~
bloom@ubuntu:~$npx bloom-ui init
Initializing design system tokens...
✔Design system tokens initialized successfully
bloom@ubuntu:~$npx bloom-ui add terminal button card
Downloading component source code...
✔Added 3 components to components/ui
API Reference
Props — Terminal
Supported configuration props for the Terminal block component.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "mac" | "powershell" | "cmd" | "ubuntu" | "default" | Operating system visual theme variant. |
| title | string | auto (variant default) | Custom title bar text overlay. |
| lines | TerminalLine[] | [] | Array of terminal line items. |
| radius | keyof typeof designRadius | "xl" | Corner border radius styling. |
| showCopy | boolean | true | Whether to display the copy commands button in header. |