Skip to content

Interface: InkSemanticAnnotation

@termwright/ink


@termwright/ink / InkSemanticAnnotation

Defined in: ink/src/types.ts:6

Intent an application knows and the Ink host tree cannot derive.

readonly optional actions?: readonly ("focus" | "activate" | "toggle" | "setValue" | "scroll" | "select" | "expand")[]

Defined in: ink/src/types.ts:15

Descriptive input intent. Actions still travel through the terminal.


readonly optional describedBy?: readonly RefObject<DOMElement | null>[]

Defined in: ink/src/types.ts:17


readonly optional description?: string

Defined in: ink/src/types.ts:10


readonly optional extended?: SemanticExtendedObject

Defined in: ink/src/types.ts:13

Application-domain JSON; never merged into portable framework state.


readonly optional labelledBy?: readonly RefObject<DOMElement | null>[]

Defined in: ink/src/types.ts:16


readonly optional name?: string

Defined in: ink/src/types.ts:9

Accessible name used by getByRole(role, { name }).


readonly optional role?: "application" | "region" | "dialog" | "alert" | "status" | "list" | "listitem" | "menu" | "menuitem" | "button" | "checkbox" | "radio" | "tab" | "textbox" | "heading" | "text" | "progressbar" | "separator" | "scrollbar" | "table" | "row" | "cell" | "generic"

Defined in: ink/src/types.ts:7


readonly optional testId?: string

Defined in: ink/src/types.ts:11