terminal/TerminalPanel
import { … } from 'zidane-ui/terminal'ui/src/terminal/TerminalPanel.tsx
Components#
TerminalPanelComponent#
The scope's terminals: the tab strip, the error line, the active terminal's view and its status line.
function TerminalPanel(props: TerminalPanelProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | TerminalPanelProps | The scope, the placement, extra strip controls, |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root. |
| placement | 'panel' | 'drawer' | Where it shows: the drawer under the chat, or the side panel's Terminal tab. |
| scope | TerminalScope | Whose terminals. |
| style? | CSSProperties | Inline styles on the root. |
| trailing? | ReactNode | Extra controls at the end of the strip (the drawer's hide button). |
Functions#
terminalTitleFunction#
A terminal's tab title: the title its program set, else the program, else its label.
function terminalTitle(t: TerminalInfo): stringParameters
| Name | Type | Description |
|---|---|---|
| t | TerminalInfo | The terminal. |
Returns
stringInterfaces#
TerminalPanelPropsInterface#
Props for TerminalPanel.
interface TerminalPanelPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root. |
| placement | 'panel' | 'drawer' | Where it shows: the drawer under the chat, or the side panel's Terminal tab. |
| scope | TerminalScope | Whose terminals. |
| style? | CSSProperties | Inline styles on the root. |
| trailing? | ReactNode | Extra controls at the end of the strip (the drawer's hide button). |