Terminal
Display command-line input and output in a terminal panel.
Preview
Import
import { Terminal } from "@sigil-ui/components";Usage
<Terminal>$ npx @sigil-ui/cli init</Terminal>Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Terminal title (shown in the title bar). |
lines | string[] | — | Code/text lines to display. |
showLineNumbers | boolean | true | Show line numbers. |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-radius-card | Radius card |
--s-border | Border |
--s-border-style | Border style |
--s-background | Background |
--s-code-font-family | Code font family |
--s-surface | Surface |
--s-radius-full | Radius full |
--s-error | Error |
--s-warning | Warning |
--s-success | Success |
--s-text-muted | Text muted |
--s-text | Text |