Terminal renders a monospace prompt with a blinking block cursor. It is built
for developer-facing UI: command runners, deploy logs, local agents, test jobs,
and any surface where CLI language is already part of the product.
Installation
Usage
import { Terminal } from "@/components/loading-ui/terminal";<Terminal prompt="$" />Customization
Terminal is intentionally small: the prompt and cursor inherit text color, and
the cursor blink can be tuned with a CSS time value.
Prompt
Use the prompt that matches your command surface.
Color
The prompt and cursor inherit currentColor, so contextual foreground utilities
are enough.
Duration
Set --duration to speed up or slow down the block cursor blink.
Examples
These examples keep the component close to CLI states instead of using it as a generic spinner.
Button
Buttons work well for command actions that are already running.
Badge
Badges can mark shell, log, or command status without taking much horizontal space.
Input Group
Command inputs can use the prompt as a leading addon and text status on the trailing edge.
Alert
Alerts give command runners enough room to explain what is still happening.