A local prompt. It does not run a shell. Replies come from the responses map. clear empties the log.
Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Type help.
Last command: none
<ply-terminal welcome="Type help." [responses]="replies" (submitted)="ran($event)"> </ply-terminal>
TypeScript
import { Component, signal } from '@angular/core';
// Install: npx ply-ui-cli add terminal
// Paths are relative to aliases.components (default: src/app/components)
import { TerminalComponent, TerminalLine } from './terminal/terminal.component';
@Component({
selector: 'app-terminal-example',
imports: [
TerminalComponent
],
template: `...`
})
export class TerminalExampleComponent {
readonly replies: Record<string, string> = {
help: 'help, date, clear',
date: '2026-11-13',
};
readonly last = signal('');
ran(command: string): void {
this.last.set(command);
}
}Install
npx ply-ui-cli add terminal
npx ply-ui-cli add terminal
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add terminal
// Paths are relative to aliases.components (default: src/app/components)
import { TerminalComponent, TerminalLine } from './terminal/terminal.component';
@Component({
selector: 'app-your-component',
imports: [
TerminalComponent
],
template: `...`
})
export class YourComponent {} API for terminal — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
TerminalLine | kind | 'in' | 'out' | — | — |
TerminalLine | text | string | — | — |
ply-terminal | class | string | '' | Extra host classes merged via `cn()`. |
ply-terminal | welcome | unknown | 'Type help.' | Text shown above the log. |
ply-terminal | prompt | unknown | '$' | Prompt prefix for typed lines. |
ply-terminal | responses | Record<string, string> | — | Replies keyed by the exact command. `clear` always empties the log. |
ply-terminal | ariaLabel | string | '' | Accessible name of the input. |
ply-terminal | (submitted) | string | — | Fires with the submitted command. |
Content