NeoTerm UI

Command Line

Single terminal command with prompt symbol and optional output.

Import

import { CommandLine } from "neoterm-ui";

Usage

<CommandLine command="npm install neoterm-ui" />
<CommandLine prompt=">" command="git status" output="On branch main\nNothing to commit" />

Props

PropTypeDefaultDescription
commandstringThe command text.
promptstring"$"Prompt character.
outputstringCommand output below the prompt line.
classNamestringAdditional CSS classes.