slide-shell · v0.3.0+
SlideTerminal
Hands-on con TerminalWindow a la izquierda + narración paso a paso a la derecha + Pro tip Callout al final. Renderiza markdown inline (**strong** y `code`) en steps y lead.
Preview (escala 0.55)
Uso
invocación
<SlideTerminal
eyebrow="Hands-on 1 · 25-30 min ⭐"
eyebrowAccent="ok"
title="Setup + primera ejecución"
titleHighlight="primera ejecución"
lead="Output: <code>graph.json</code> real."
terminalTitle="~/taller-graphify-starter · zsh"
lines={[
{ type: 'cmd', text: 'uv tool install graphifyy' },
{ type: 'ok', text: '✓ installed graphifyy 0.8.2' }
]}
steps={[
'Prerequisitos: Node ≥ 20 y `uv`.',
'**Predice antes de ejecutar** — papel y boli.'
]}
tip="El paso 4 es no-negociable."
/> Props
| Prop | Tipo | Default | Descripción |
|---|---|---|---|
eyebrow | string | '' | Texto del eyebrow. |
eyebrowAccent | 'electrico' | 'ok' | 'warn' | 'err' | 'ok' | Color del bar del eyebrow. |
title | string | '' | Título. |
titleHighlight | string | '' | Substring a destacar. |
lead | string | '' | Párrafo intro (acepta <code> y <strong>). |
terminalTitle | string | '~ · zsh' | Caption de la titlebar del terminal. |
lines | { type; text }[] | [] | Líneas del terminal. |
steps | string[] | [] | Pasos numerados (markdown inline: **strong**, `code`). |
tip | string | '' | Pro-tip al final (Callout info, opcional). |
tipTitle | string | 'Pro tip' | Título del Pro-tip Callout. |