Skip to content
PixiKit

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
NameTypeDefaultDescription
titlestring"~/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.
typingSpeednumber45How long each typed character takes, in milliseconds.
lineDelaynumber350The pause before each next line, in milliseconds.
loopbooleantrueStart over after the last line.
loopDelaynumber3000How long the finished window stays before it starts over, in milliseconds.
startOnViewbooleantrueWait until the window is on screen before typing.
themeTerminalTheme"dark"The colours: `auto` follows the page's light or dark surface, the rest are fixed palettes.
promptstring"$"The sign before each command.
accentstring""Overrides the theme's prompt and caret colour; empty keeps the theme's own.
widthnumber600The window's largest width in pixels; it shrinks with a narrower container.
fontSizenumber15The text size in pixels; the bar, padding and caret scale with it.
classNamestringNone

Related