Skip to content

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.

TypeScript
function TerminalPanel(props: TerminalPanelProps): Element
Parameters
NameTypeDescription
propsTerminalPanelProps

The scope, the placement, extra strip controls, className and style.

Element
TerminalPanel props
NameTypeDescription
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.

scopeTerminalScope

Whose terminals.

style?CSSProperties

Inline styles on the root.

trailing?ReactNode

Extra controls at the end of the strip (the drawer's hide button).

ui/src/terminal/TerminalPanel.tsx:93

Functions#

terminalTitleFunction#

A terminal's tab title: the title its program set, else the program, else its label.

TypeScript
function terminalTitle(t: TerminalInfo): string
Parameters
NameTypeDescription
tTerminalInfo

The terminal.

string

ui/src/terminal/TerminalPanel.tsx:84

Interfaces#

TerminalPanelPropsInterface#

Props for TerminalPanel.

TypeScript
interface TerminalPanelProps
TerminalPanelProps properties
NameTypeDescription
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.

scopeTerminalScope

Whose terminals.

style?CSSProperties

Inline styles on the root.

trailing?ReactNode

Extra controls at the end of the strip (the drawer's hide button).

ui/src/terminal/TerminalPanel.tsx:66