Skip to content

Terminal

Terminal emulator.

Import

tsx
import { ZTerminal } from "@zurto/ui";

Usage

tsx
<ZTerminal
  onCommand={(cmd) => executeCommand(cmd)}
  initialOutput={["Welcome to terminal"]}
/>

Props

PropTypeDefaultDescription
onCommand(command: string) => voidCommand handler
initialOutputstring[][]Initial output
promptstring'$'Prompt character

Released under the MIT License.