TERMINAL
Scrollable log and output block. Supports five line types with distinct colors, optional timestamps, and a blinking cursor.
PREVIEW
INSTALLATION
USAGE
LINE TYPES
PROPS
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| lines | TerminalLine[] | [] | Array of log entries. Each has type, text, and optional timestamp. |
| title | string | "TERMINAL" | Label shown in the title bar. |
| prompt | string | ">" | Prompt symbol shown beside the blinking cursor. |
| height | string | number | "16rem" | Height of the scrollable output area. |
| blinkCursor | boolean | true | Show the blinking block cursor at the end of the log. |
| className | string | — | Additional classes merged via cn(). |
TERMINALLINE FIELDS
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| text | string | — | The line content. |
| type | input | output | warn | error | system | "output" | Controls prefix symbol and text color. |
| timestamp | string | undefined | Optional timestamp shown in muted color at the start. |