For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.4.0/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.4.0/en/components/terminal.md.

Terminal

Terminal presents one bounded command session with a stable title, command, output viewport, and execution state. Shell transport and process control remain application logic.

Live preview
Release checksExited 0 · 18.4s
$ npm run check:package
Validated @a3s-lab/ui: package exports complete.\n84 public component
contracts verified.\nProcess finished successfully.
zsh · /workspace/a3s-ui

Usage

<section class="terminal" data-state="success" aria-labelledby="terminal-title">
  <header>
    <strong id="terminal-title">Release checks</strong
    ><span data-terminal-status>Exited 0</span>
  </header>
  <code data-terminal-command>$ npm run check:package</code>
  <pre data-terminal-output>...</pre>
  <footer>...</footer>
</section>

Parameters

APIValuesPurpose
data-stateidle, running, waiting, success, cancelled, errorSession state
data-terminal-commandRecommendedExact command
data-terminal-outputRequiredBounded output viewport
data-terminal-statusRecommendedExit, running, or wait state

States and variants

Keep partial output after cancellation and error. High-volume streams may compose Log Viewer when filtering, gaps, and pause behavior are needed.

Accessibility

Name the terminal region. Do not make high-volume output a live region; announce only bounded state transitions. Never render secrets from the environment.