Themes
- Default
- Catppuccin
- Dracula
- High Contrast
- High Contrast Light
- Monokai
- Nord
- One Dark
- Solarized
- Tokyo Night
- AMOLED
- Aura
- Ayu
- Carbonfox
- Catppuccin Frappe
- Catppuccin Macchiato
- Cobalt2
- Cursor
- Everforest
- Flexoki
- GitHub
- Gruvbox
- Kanagawa
- Lucent Orng
- Material
- Matrix
- Mercury
- Night Owl
- OC-2
- One Dark Pro
- OpenCode
- Orng
- Osaka Jade
- Palenight
- Rose Pine
- Shades of Purple
- Synthwave '84
- Vercel
- Vesper
- Zenburn
Utility
AI
Terminal
Embedded terminal requires Node.js and may not render in the browser preview.
Installation
$ pnpm dlx shadcn@latest add @termcn/embedded-terminal
Usage
import { EmbeddedTerminal } from "@/components/ui/embedded-terminal";<EmbeddedTerminal
command="bash"
args={["-c", "echo Hello world"]}
width={80}
height={24}
onExit={(code) => console.log(`Exited with ${code}`)}
/>API Reference
EmbeddedTerminal
| Prop | Type | Default |
|---|---|---|
command | string | required |
args | string[] | [] |
cwd | string | - |
width | number | 80 |
height | number | 24 |
onExit | (code: number) => void | - |