Interface: SemanticProps
@termwright/ink / SemanticProps
Interface: SemanticProps
Section titled “Interface: SemanticProps”Defined in: ink/src/semantic.tsx:29
Semantic props: the annotation, plus the element it describes.
Extends
Section titled “Extends”Properties
Section titled “Properties”actions?
Section titled “actions?”
readonlyoptionalactions?: readonly ("focus"|"activate"|"toggle"|"setValue"|"scroll"|"select"|"expand")[]
Defined in: ink/src/types.ts:15
Descriptive input intent. Actions still travel through the terminal.
Inherited from
Section titled “Inherited from”children
Section titled “children”
readonlychildren:SemanticChild
Defined in: ink/src/semantic.tsx:37
Exactly one element that accepts a ref — in practice an Ink <Box>.
<Text> does not take a ref, so wrapping one annotates nothing. Wrap the
text in a <Box> instead, which is what giving it a shape would require
anyway.
describedBy?
Section titled “describedBy?”
readonlyoptionaldescribedBy?: readonlyRefObject<DOMElement|null>[]
Defined in: ink/src/types.ts:17
Inherited from
Section titled “Inherited from”InkSemanticAnnotation.describedBy
description?
Section titled “description?”
readonlyoptionaldescription?:string
Defined in: ink/src/types.ts:10
Inherited from
Section titled “Inherited from”InkSemanticAnnotation.description
extended?
Section titled “extended?”
readonlyoptionalextended?:SemanticExtendedObject
Defined in: ink/src/types.ts:13
Application-domain JSON; never merged into portable framework state.
Inherited from
Section titled “Inherited from”InkSemanticAnnotation.extended
labelledBy?
Section titled “labelledBy?”
readonlyoptionallabelledBy?: readonlyRefObject<DOMElement|null>[]
Defined in: ink/src/types.ts:16
Inherited from
Section titled “Inherited from”InkSemanticAnnotation.labelledBy
readonlyoptionalname?:string
Defined in: ink/src/types.ts:9
Accessible name used by getByRole(role, { name }).
Inherited from
Section titled “Inherited from”
readonlyoptionalrole?:"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
Inherited from
Section titled “Inherited from”testId?
Section titled “testId?”
readonlyoptionaltestId?:string
Defined in: ink/src/types.ts:11