componente · v0.2.0+
TerminalLine
Una línea individual de terminal con 5 tipos semánticos. Pensado para componer dentro de <TerminalWindow> (o tu propia caja).
Los 5 tipos
# esto es un comentario
➜ ~ uv tool install graphifyy
Resolved 12 packages...
✓ installed graphifyy 0.8.2
✗ network error: ETIMEDOUT
uso
<TerminalLine type="comment" text="esto es un comentario" />
<TerminalLine type="cmd" text="uv tool install graphifyy" />
<TerminalLine type="out" text="Resolved 12 packages..." />
<TerminalLine type="ok" text="✓ installed graphifyy 0.8.2" />
<TerminalLine type="err" text="✗ network error: ETIMEDOUT" /> Props
| Prop | Tipo | Default | Descripción |
|---|---|---|---|
type | 'cmd' | 'out' | 'ok' | 'err' | 'comment' | 'out' | Tipo semántico de la línea (afecta color y prefijo). |
text | string | '' | Contenido de la línea. |