terminal-kit/components/terminal-window.tsx
$
cat components/terminal-window.tsx
# terminal-window
Chrome wrapper with traffic lights, path, and labeled progress bar.
──
examples
projects/main malayvasa/folder
|context13.27%
──
component api
TerminalWindow
Top-level shell with header chrome, scroll body, and optional footer.
PropTypeDefaultDescription
pathstringPath label in the header.
progressnumber | { value, label?, showValue? } | falseundefinedHeader progress bar. Pass false to hide.
showTrafficLightsbooleantrueShow macOS-style traffic lights in the header.
variant"dark" | "light""dark"Color theme variant.
footerReactNodePinned footer slot — usually Input.
headerReactNodeOptional header slot above scroll content.
fillbooleanfalseStretch to fill a fixed-height window and scroll internally.
pinScrollBottombooleanfalsePin scroll content to the bottom as new lines appear.
bodyClassNamestringClasses for the inner body layout wrapper.
classNamestringAdditional CSS classes on the window shell.
...propsHTMLDivElementStandard div props.
TerminalBody
Deprecated — pass footer, header, fill, and pinScrollBottom to TerminalWindow instead.
PropTypeDefaultDescription
footerReactNodePinned footer slot — usually Input.
headerReactNodeOptional header slot above scroll content.
pinScrollBottombooleanfalsePin scroll content to the bottom as new lines appear.
fillbooleanfalseStretch to fill a fixed-height window and scroll internally.
──
install
npx shadcn@latest add "https://www.terminal-kit.com/r/terminal-window.json"