terminal/TerminalDrawer
import { … } from 'zidane-ui/terminal'ui/src/terminal/TerminalDrawer.tsx
Components#
TerminalDrawerComponent#
The drawer under the chat column: the scope's terminals, shown while its layout says so. Memoised on the scope's identity: a parent may re-render it with a fresh scope object.
const TerminalDrawer: MemoExoticComponent<(__namedParameters: TerminalDrawerProps) => Element>TerminalPanelTabComponent#
The side panel's Terminal tab body (TERMINAL_PANEL_ID): the scope's terminals, the same panel
the drawer shows. Mounted only while the side panel is open (the panel stays mounted hidden when
closed), so a closed panel holds no view. Reads the layout only: panel content loads and badges
never re-render the terminals.
function TerminalPanelTab(props: TerminalPanelTabProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | TerminalPanelTabProps | The scope and |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root. |
| scope | TerminalScope | Whose terminals. |
TerminalToggleComponent#
The header button that shows / hides the drawer; badged when the agent started a terminal nobody is looking at. Renders nothing while terminals are off.
function TerminalToggle(props: TerminalToggleProps): Element | nullParameters
| Name | Type | Description |
|---|---|---|
| props | TerminalToggleProps | The scope and |
Returns
Element | nullProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the button. |
| scope | TerminalScope | Whose drawer. |
Constants#
TERMINAL_HEIGHTConstant#
The drawer's height bounds (px) and its share cap of the column.
const TERMINAL_HEIGHT: { default: number; maxShare: number; min: number }Interfaces#
TerminalDrawerPropsInterface#
Props for TerminalDrawer.
interface TerminalDrawerPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root. |
| scope | TerminalScope | Whose terminals. |
TerminalPanelTabPropsInterface#
Props for TerminalPanelTab.
interface TerminalPanelTabPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root. |
| scope | TerminalScope | Whose terminals. |
TerminalTogglePropsInterface#
Props for TerminalToggle.
interface TerminalTogglePropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the button. |
| scope | TerminalScope | Whose drawer. |