Terminal
Terminal emulator.
Import
tsx
import { ZTerminal } from "@zurto/ui";Usage
tsx
<ZTerminal
onCommand={(cmd) => executeCommand(cmd)}
initialOutput={["Welcome to terminal"]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
onCommand | (command: string) => void | – | Command handler |
initialOutput | string[] | [] | Initial output |
prompt | string | '$' | Prompt character |