Terminal API
API documentation for Terminal component
TerminalRoot#
Props#
Defines valid properties in Terminal component.
State#
Defines valid state in Terminal component.
| name | type | default | description |
|---|---|---|---|
| commandText | string | null | Current command text being typed. |
| commands | TerminalCommandItem[] | null | Array of commands and their responses. |
Exposes#
Defines the methods and properties exposed by Terminal component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Terminal component.
Types#
Instance
Instance of Terminal component.
| values |
|---|
| ComponentInstance<TerminalRootProps, TerminalRootState, TerminalRootExposes> |
TerminalWelcome#
Props#
Defines valid properties in TerminalWelcome component.
Exposes#
Defines the methods and properties exposed by TerminalWelcome component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TerminalWelcome component.
| name | type | default | description |
|---|---|---|---|
| root | TerminalWelcomePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TerminalWelcome component.
| values |
|---|
| ComponentInstance<TerminalWelcomeProps, TerminalWelcomeState, TerminalWelcomeExposes> |
TerminalCommandList#
Props#
Defines valid properties in TerminalCommandList component.
Exposes#
Defines the methods and properties exposed by TerminalCommandList component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TerminalCommandList component.
| name | type | default | description |
|---|---|---|---|
| root | TerminalCommandListPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TerminalCommandList component.
| values |
|---|
| ComponentInstance<TerminalCommandListProps, TerminalCommandListState, TerminalCommandListExposes> |
useTerminal#
Props#
Defines valid properties in useTerminal.
State#
Defines valid state in useTerminal.
| name | type | default | description |
|---|---|---|---|
| commandText | string | null | Current command text being typed. |
| commands | TerminalCommandItem[] | null | Array of commands and their responses. |
Exposes#
Defines the methods and properties exposed by useTerminal.
Types#
Instance
Instance of useTerminal headless.
| values |
|---|
| HeadlessInstance<useTerminalProps, useTerminalState, useTerminalExposes> |