Terminal
A window that types a command, then prints its output line by line, once or on a loop.
pixikit.com/docs/components/terminal
Customize
Typing speed45ms
Line delay350ms
Loop
Loop delay3000ms
Start on view
Theme
Accent
Width600px
Font size15px
Props
13| Name | Type | Default | Description |
|---|---|---|---|
title | string | "~/my-app" | The words in the title bar, usually a folder. |
lines | (string | TerminalLine)[] | ["$ npx pixikit add split-flap", "Resolving split-flap", "✓ components/pixikit/split-flap.tsx", "✓ components/pixikit/split-flap.css", "# Added 1 component"] | The lines in order. A string starting with `$ ` is a typed command, `✓ ` a success line, `# ` a muted line, anything else output. |
typingSpeed | number | 45 | How long each typed character takes, in milliseconds. |
lineDelay | number | 350 | The pause before each next line, in milliseconds. |
loop | boolean | true | Start over after the last line. |
loopDelay | number | 3000 | How long the finished window stays before it starts over, in milliseconds. |
startOnView | boolean | true | Wait until the window is on screen before typing. |
theme | TerminalTheme | "dark" | The colours: `auto` follows the page's light or dark surface, the rest are fixed palettes. |
prompt | string | "$" | The sign before each command. |
accent | string | "" | Overrides the theme's prompt and caret colour; empty keeps the theme's own. |
width | number | 600 | The window's largest width in pixels; it shrinks with a narrower container. |
fontSize | number | 15 | The text size in pixels; the bar, padding and caret scale with it. |
className | string | None |