Terminal (Ausgabe) — component.terminal
Terminal-Fenster mit Fenster-Punkten und Zeilen-Typen (Befehl, Ausgabe, Erfolg, Fehler, Hinweis); Zeilen erscheinen nacheinander (abschaltbar, respektiert prefers-reduced-motion). 1.1.0 (opt-in url): interaktive Live-Sitzung auf xterm.js (MIT, gebuendelt in vendor/terminal-engine.js, erst beim Mount
Beispiele
Installations-Ablauf (Zeilen erscheinen nacheinander)
$ npm run buildtokens: 179 Referenz-, 76 semantische Tokens, 10 Themesregistry: 128 Definitionenassets: 98 CSS-, 34 JS-ArtefakteBuild erfolgreichHinweis: 2 Definitionen ohne llm.md
Live-Sitzung (1.1.0, url): interaktives Terminal auf xterm.js - hier ohne Dienst, daher ohne Autostart
Die Sitzung wird protokolliert (wer, wann, wie lange - ohne Inhalte).
Fehlerfall, ohne Animation
$ npm test235 bestanden, 1 fehlgeschlagen
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title | string | "" |
lines * | array | — |
prompt | string | "$" |
animate | boolean | true |
cursor | boolean | true |
url | string | "" |
subtitle | string | "" |
note | string | "" |
autoConnect | boolean | true |
height | string: md | lg | fill | "lg" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: done, state, connect, disconnect, error
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--terminal-delay | 0s |
--terminal-bg | var(--color-band-dark) |
--terminal-fg | var(--color-band-dark-text) |
--terminal-muted | var(--color-band-dark-muted) |
--terminal-cursor | var(--color-status-success) |
--terminal-red | var(--color-status-danger) |
--terminal-green | var(--color-status-success) |
--terminal-yellow | var(--color-status-warning) |
--terminal-blue | var(--color-status-info) |
--terminal-magenta | var(--color-code-keyword, var(--color-accent)) |
--terminal-cyan | var(--color-code-property, var(--color-status-info)) |
Genutzte Design-Tokens
border.hairline color.accent color.band.dark color.band.dark-muted color.band.dark-text color.border.strong color.code.keyword color.code.property color.status.danger color.status.info color.status.success color.status.warning duration.base duration.slow easing.out focus.ring-color focus.ring-width font.family.default font.family.mono leading.loose radius.full radius.surface size.1 size.1-5 size.10 size.2 size.3 size.4 text.sm text.xs