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
| Prop | Type | Default | Description |
|---|---|---|---|
| command | string | — | The command text. |
| prompt | string | "$" | Prompt character. |
| output | string | — | Command output below the prompt line. |
| className | string | — | Additional CSS classes. |