Components Data-Backed Workflows TerminalWindow
TerminalWindow
Co-pilot terminal window with auto-typing sequences.
Live demo
01Code snippet for bash: > antcli rooms post cr_c4185d0f "Draft complete"✓ postedI have finished drafting the components and posted an update to the room!> bun run testTests 2 passed
Implementation
02 TerminalWindow.svelte
<TerminalWindow title="bash" lines={[
{ type: 'command', text: 'npm run dev' },
{ type: 'output', text: 'VITE v5.0.0 ready in 320 ms' }
]} />Logic explainer
03What Does It Do? (Plain English)
Detailed explanation of TerminalWindow.
How It Works (Pseudo-Code)
Setup component TerminalWindowState Flow Diagram
stateDiagram-v2
[*] --> InitProps Reference
class(string): Additional CSS classes.
Edge Cases
- Handles missing properties gracefully.
Dependencies
- None.
File Structure
src/lib/components/TerminalWindow.sveltesrc/lib/components/TerminalWindow.md