ink-canvas / InkCanvasProps
Interface: InkCanvasProps
Configuration props for the InkCanvas component
Extends standard HTML div attributes to allow full customization of the container element (className, style, data-*, event handlers, etc.).
Remarks
All HTML div attributes are passed through to the container element, except for the InkCanvas-specific props defined in this interface.
Extends
HTMLAttributes<HTMLDivElement>
Properties
about?
optionalabout:string
Inherited from
HTMLAttributes.about
accessKey?
optionalaccessKey:string
Inherited from
HTMLAttributes.accessKey
aria-activedescendant?
optionalaria-activedescendant:string
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Inherited from
HTMLAttributes.aria-activedescendant
aria-atomic?
optionalaria-atomic:Booleanish
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Inherited from
HTMLAttributes.aria-atomic
aria-autocomplete?
optionalaria-autocomplete:"none"|"list"|"inline"|"both"
Indicates whether inputting text could trigger display of one or more predictions of the user’s intended value for an input and specifies how predictions would be presented if they are made.
Inherited from
HTMLAttributes.aria-autocomplete
aria-braillelabel?
optionalaria-braillelabel:string
Defines a string value that labels the current element, which is intended to be converted into Braille.
See
aria-label.
Inherited from
HTMLAttributes.aria-braillelabel
aria-brailleroledescription?
optionalaria-brailleroledescription:string
Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
See
aria-roledescription.
Inherited from
HTMLAttributes.aria-brailleroledescription
aria-busy?
optionalaria-busy:Booleanish
Inherited from
HTMLAttributes.aria-busy
aria-checked?
optionalaria-checked:boolean|"true"|"false"|"mixed"
Indicates the current “checked” state of checkboxes, radio buttons, and other widgets.
See
- aria-pressed
- aria-selected.
Inherited from
HTMLAttributes.aria-checked
aria-colcount?
optionalaria-colcount:number
Defines the total number of columns in a table, grid, or treegrid.
See
aria-colindex.
Inherited from
HTMLAttributes.aria-colcount
aria-colindex?
optionalaria-colindex:number
Defines an element’s column index or position with respect to the total number of columns within a table, grid, or treegrid.
See
- aria-colcount
- aria-colspan.
Inherited from
HTMLAttributes.aria-colindex
aria-colindextext?
optionalaria-colindextext:string
Defines a human readable text alternative of aria-colindex.
See
aria-rowindextext.
Inherited from
HTMLAttributes.aria-colindextext
aria-colspan?
optionalaria-colspan:number
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
See
- aria-colindex
- aria-rowspan.
Inherited from
HTMLAttributes.aria-colspan
aria-controls?
optionalaria-controls:string
Identifies the element (or elements) whose contents or presence are controlled by the current element.
See
aria-owns.
Inherited from
HTMLAttributes.aria-controls
aria-current?
optionalaria-current:boolean|"time"|"true"|"false"|"page"|"step"|"location"|"date"
Indicates the element that represents the current item within a container or set of related elements.
Inherited from
HTMLAttributes.aria-current
aria-describedby?
optionalaria-describedby:string
Identifies the element (or elements) that describes the object.
See
aria-labelledby
Inherited from
HTMLAttributes.aria-describedby
aria-description?
optionalaria-description:string
Defines a string value that describes or annotates the current element.
See
related aria-describedby.
Inherited from
HTMLAttributes.aria-description
aria-details?
optionalaria-details:string
Identifies the element that provides a detailed, extended description for the object.
See
aria-describedby.
Inherited from
HTMLAttributes.aria-details
aria-disabled?
optionalaria-disabled:Booleanish
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
See
- aria-hidden
- aria-readonly.
Inherited from
HTMLAttributes.aria-disabled
aria-dropeffect?
optionalaria-dropeffect:"link"|"none"|"copy"|"execute"|"move"|"popup"
Indicates what functions can be performed when a dragged object is released on the drop target.
Deprecated
in ARIA 1.1
Inherited from
HTMLAttributes.aria-dropeffect
aria-errormessage?
optionalaria-errormessage:string
Identifies the element that provides an error message for the object.
See
- aria-invalid
- aria-describedby.
Inherited from
HTMLAttributes.aria-errormessage
aria-expanded?
optionalaria-expanded:Booleanish
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Inherited from
HTMLAttributes.aria-expanded
aria-flowto?
optionalaria-flowto:string
Identifies the next element (or elements) in an alternate reading order of content which, at the user’s discretion, allows assistive technology to override the general default of reading in document source order.
Inherited from
HTMLAttributes.aria-flowto
aria-grabbed?
optionalaria-grabbed:Booleanish
Indicates an element’s “grabbed” state in a drag-and-drop operation.
Deprecated
in ARIA 1.1
Inherited from
HTMLAttributes.aria-grabbed
aria-haspopup?
optionalaria-haspopup:boolean|"dialog"|"menu"|"listbox"|"true"|"false"|"grid"|"tree"
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Inherited from
HTMLAttributes.aria-haspopup
aria-hidden?
optionalaria-hidden:Booleanish
Indicates whether the element is exposed to an accessibility API.
See
aria-disabled.
Inherited from
HTMLAttributes.aria-hidden
aria-invalid?
optionalaria-invalid:boolean|"true"|"false"|"grammar"|"spelling"
Indicates the entered value does not conform to the format expected by the application.
See
aria-errormessage.
Inherited from
HTMLAttributes.aria-invalid
aria-keyshortcuts?
optionalaria-keyshortcuts:string
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Inherited from
HTMLAttributes.aria-keyshortcuts
aria-label?
optionalaria-label:string
Defines a string value that labels the current element.
See
aria-labelledby.
Inherited from
HTMLAttributes.aria-label
aria-labelledby?
optionalaria-labelledby:string
Identifies the element (or elements) that labels the current element.
See
aria-describedby.
Inherited from
HTMLAttributes.aria-labelledby
aria-level?
optionalaria-level:number
Defines the hierarchical level of an element within a structure.
Inherited from
HTMLAttributes.aria-level
aria-live?
optionalaria-live:"off"|"assertive"|"polite"
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
Inherited from
HTMLAttributes.aria-live
aria-modal?
optionalaria-modal:Booleanish
Indicates whether an element is modal when displayed.
Inherited from
HTMLAttributes.aria-modal
aria-multiline?
optionalaria-multiline:Booleanish
Indicates whether a text box accepts multiple lines of input or only a single line.
Inherited from
HTMLAttributes.aria-multiline
aria-multiselectable?
optionalaria-multiselectable:Booleanish
Indicates that the user may select more than one item from the current selectable descendants.
Inherited from
HTMLAttributes.aria-multiselectable
aria-orientation?
optionalaria-orientation:"horizontal"|"vertical"
Indicates whether the element’s orientation is horizontal, vertical, or unknown/ambiguous.
Inherited from
HTMLAttributes.aria-orientation
aria-owns?
optionalaria-owns:string
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
See
aria-controls.
Inherited from
HTMLAttributes.aria-owns
aria-placeholder?
optionalaria-placeholder:string
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
Inherited from
HTMLAttributes.aria-placeholder
aria-posinset?
optionalaria-posinset:number
Defines an element’s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
See
aria-setsize.
Inherited from
HTMLAttributes.aria-posinset
aria-pressed?
optionalaria-pressed:boolean|"true"|"false"|"mixed"
Indicates the current “pressed” state of toggle buttons.
See
- aria-checked
- aria-selected.
Inherited from
HTMLAttributes.aria-pressed
aria-readonly?
optionalaria-readonly:Booleanish
Indicates that the element is not editable, but is otherwise operable.
See
aria-disabled.
Inherited from
HTMLAttributes.aria-readonly
aria-relevant?
optionalaria-relevant:"text"|"additions"|"additions removals"|"additions text"|"all"|"removals"|"removals additions"|"removals text"|"text additions"|"text removals"
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
See
aria-atomic.
Inherited from
HTMLAttributes.aria-relevant
aria-required?
optionalaria-required:Booleanish
Indicates that user input is required on the element before a form may be submitted.
Inherited from
HTMLAttributes.aria-required
aria-roledescription?
optionalaria-roledescription:string
Defines a human-readable, author-localized description for the role of an element.
Inherited from
HTMLAttributes.aria-roledescription
aria-rowcount?
optionalaria-rowcount:number
Defines the total number of rows in a table, grid, or treegrid.
See
aria-rowindex.
Inherited from
HTMLAttributes.aria-rowcount
aria-rowindex?
optionalaria-rowindex:number
Defines an element’s row index or position with respect to the total number of rows within a table, grid, or treegrid.
See
- aria-rowcount
- aria-rowspan.
Inherited from
HTMLAttributes.aria-rowindex
aria-rowindextext?
optionalaria-rowindextext:string
Defines a human readable text alternative of aria-rowindex.
See
aria-colindextext.
Inherited from
HTMLAttributes.aria-rowindextext
aria-rowspan?
optionalaria-rowspan:number
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
See
- aria-rowindex
- aria-colspan.
Inherited from
HTMLAttributes.aria-rowspan
aria-selected?
optionalaria-selected:Booleanish
Indicates the current “selected” state of various widgets.
See
- aria-checked
- aria-pressed.
Inherited from
HTMLAttributes.aria-selected
aria-setsize?
optionalaria-setsize:number
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
See
aria-posinset.
Inherited from
HTMLAttributes.aria-setsize
aria-sort?
optionalaria-sort:"none"|"ascending"|"descending"|"other"
Indicates if items in a table or grid are sorted in ascending or descending order.
Inherited from
HTMLAttributes.aria-sort
aria-valuemax?
optionalaria-valuemax:number
Defines the maximum allowed value for a range widget.
Inherited from
HTMLAttributes.aria-valuemax
aria-valuemin?
optionalaria-valuemin:number
Defines the minimum allowed value for a range widget.
Inherited from
HTMLAttributes.aria-valuemin
aria-valuenow?
optionalaria-valuenow:number
Defines the current value for a range widget.
See
aria-valuetext.
Inherited from
HTMLAttributes.aria-valuenow
aria-valuetext?
optionalaria-valuetext:string
Defines the human readable text alternative of aria-valuenow for a range widget.
Inherited from
HTMLAttributes.aria-valuetext
autoCapitalize?
optionalautoCapitalize:"none"|"off"|"on"|"sentences"|"words"|"characters"|string&object
Inherited from
HTMLAttributes.autoCapitalize
autoCorrect?
optionalautoCorrect:string
Inherited from
HTMLAttributes.autoCorrect
autoFocus?
optionalautoFocus:boolean
Inherited from
HTMLAttributes.autoFocus
autoSave?
optionalautoSave:string
Inherited from
HTMLAttributes.autoSave
children?
optionalchildren:ReactNode
Inherited from
HTMLAttributes.children
className?
optionalclassName:string
Inherited from
HTMLAttributes.className
color?
optionalcolor:string
Inherited from
HTMLAttributes.color
cols?
optionalcols:number
Fixed number of columns for the terminal
If provided, the terminal will use this exact column count instead of auto-fitting to the container width.
Remarks
When both cols and rows are provided, auto-fitting is disabled entirely.
If only cols is provided without rows, auto-fitting will still occur
for rows while columns remain fixed.
Example
// Fixed 80-column terminal
<InkCanvas cols={80}>
<MyApp />
</InkCanvas>content?
optionalcontent:string
Inherited from
HTMLAttributes.content
contentEditable?
optionalcontentEditable:Booleanish|"inherit"|"plaintext-only"
Inherited from
HTMLAttributes.contentEditable
contextMenu?
optionalcontextMenu:string
Inherited from
HTMLAttributes.contextMenu
dangerouslySetInnerHTML?
optionaldangerouslySetInnerHTML:object
__html
__html:
string|TrustedHTML
Inherited from
HTMLAttributes.dangerouslySetInnerHTML
datatype?
optionaldatatype:string
Inherited from
HTMLAttributes.datatype
defaultChecked?
optionaldefaultChecked:boolean
Inherited from
HTMLAttributes.defaultChecked
defaultValue?
optionaldefaultValue:string|number| readonlystring[]
Inherited from
HTMLAttributes.defaultValue
dir?
optionaldir:string
Inherited from
HTMLAttributes.dir
draggable?
optionaldraggable:Booleanish
Inherited from
HTMLAttributes.draggable
enterKeyHint?
optionalenterKeyHint:"search"|"enter"|"done"|"go"|"next"|"previous"|"send"
Inherited from
HTMLAttributes.enterKeyHint
exportparts?
optionalexportparts:string
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
Inherited from
HTMLAttributes.exportparts
focused?
optionalfocused:boolean
Whether the canvas is currently focused and should receive keyboard input
When true, the terminal captures keyboard events and forwards them to the
Ink application. When false, keyboard events are ignored.
Remarks
Use this prop to control when the terminal should accept input. For example,
you might set this to false when a modal dialog is open, or when the user
is interacting with other parts of your application.
Default Value
false;Example
const [isFocused, setIsFocused] = useState(false);
<InkCanvas
focused={isFocused}
onClick={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
>
<MyApp />
</InkCanvas>;hidden?
optionalhidden:boolean
Inherited from
HTMLAttributes.hidden
id?
optionalid:string
Inherited from
HTMLAttributes.id
inert?
optionalinert:boolean
See
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
Inherited from
HTMLAttributes.inert
inlist?
optionalinlist:any
Inherited from
HTMLAttributes.inlist
inputMode?
optionalinputMode:"search"|"text"|"none"|"tel"|"url"|"email"|"numeric"|"decimal"
Hints at the type of data that might be entered by the user while editing the element or its contents
See
https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
Inherited from
HTMLAttributes.inputMode
is?
optionalis:string
Specify that a standard HTML element should behave like a defined custom built-in element
See
https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
Inherited from
HTMLAttributes.is
itemID?
optionalitemID:string
Inherited from
HTMLAttributes.itemID
itemProp?
optionalitemProp:string
Inherited from
HTMLAttributes.itemProp
itemRef?
optionalitemRef:string
Inherited from
HTMLAttributes.itemRef
itemScope?
optionalitemScope:boolean
Inherited from
HTMLAttributes.itemScope
itemType?
optionalitemType:string
Inherited from
HTMLAttributes.itemType
lang?
optionallang:string
Inherited from
HTMLAttributes.lang
nonce?
optionalnonce:string
Inherited from
HTMLAttributes.nonce
onAbort?
optionalonAbort:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAbort
onAbortCapture?
optionalonAbortCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAbortCapture
onAnimationEnd?
optionalonAnimationEnd:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationEnd
onAnimationEndCapture?
optionalonAnimationEndCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationEndCapture
onAnimationIteration?
optionalonAnimationIteration:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationIteration
onAnimationIterationCapture?
optionalonAnimationIterationCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationIterationCapture
onAnimationStart?
optionalonAnimationStart:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationStart
onAnimationStartCapture?
optionalonAnimationStartCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAnimationStartCapture
onAuxClick?
optionalonAuxClick:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAuxClick
onAuxClickCapture?
optionalonAuxClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onAuxClickCapture
onBeforeInput?
optionalonBeforeInput:InputEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onBeforeInput
onBeforeInputCapture?
optionalonBeforeInputCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onBeforeInputCapture
onBeforeToggle?
optionalonBeforeToggle:ToggleEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onBeforeToggle
onBlur?
optionalonBlur:FocusEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onBlur
onBlurCapture?
optionalonBlurCapture:FocusEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onBlurCapture
onCanPlay?
optionalonCanPlay:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCanPlay
onCanPlayCapture?
optionalonCanPlayCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCanPlayCapture
onCanPlayThrough?
optionalonCanPlayThrough:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCanPlayThrough
onCanPlayThroughCapture?
optionalonCanPlayThroughCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCanPlayThroughCapture
onChange?
optionalonChange:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onChange
onChangeCapture?
optionalonChangeCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onChangeCapture
onClick?
optionalonClick:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onClick
onClickCapture?
optionalonClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onClickCapture
onCompositionEnd?
optionalonCompositionEnd:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionEnd
onCompositionEndCapture?
optionalonCompositionEndCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionEndCapture
onCompositionStart?
optionalonCompositionStart:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionStart
onCompositionStartCapture?
optionalonCompositionStartCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionStartCapture
onCompositionUpdate?
optionalonCompositionUpdate:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionUpdate
onCompositionUpdateCapture?
optionalonCompositionUpdateCapture:CompositionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCompositionUpdateCapture
onContextMenu?
optionalonContextMenu:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onContextMenu
onContextMenuCapture?
optionalonContextMenuCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onContextMenuCapture
onCopy?
optionalonCopy:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCopy
onCopyCapture?
optionalonCopyCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCopyCapture
onCut?
optionalonCut:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCut
onCutCapture?
optionalonCutCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onCutCapture
onDoubleClick?
optionalonDoubleClick:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDoubleClick
onDoubleClickCapture?
optionalonDoubleClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDoubleClickCapture
onDrag?
optionalonDrag:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDrag
onDragCapture?
optionalonDragCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragCapture
onDragEnd?
optionalonDragEnd:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragEnd
onDragEndCapture?
optionalonDragEndCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragEndCapture
onDragEnter?
optionalonDragEnter:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragEnter
onDragEnterCapture?
optionalonDragEnterCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragEnterCapture
onDragExit?
optionalonDragExit:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragExit
onDragExitCapture?
optionalonDragExitCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragExitCapture
onDragLeave?
optionalonDragLeave:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragLeave
onDragLeaveCapture?
optionalonDragLeaveCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragLeaveCapture
onDragOver?
optionalonDragOver:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragOver
onDragOverCapture?
optionalonDragOverCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragOverCapture
onDragStart?
optionalonDragStart:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragStart
onDragStartCapture?
optionalonDragStartCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDragStartCapture
onDrop?
optionalonDrop:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDrop
onDropCapture?
optionalonDropCapture:DragEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDropCapture
onDurationChange?
optionalonDurationChange:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDurationChange
onDurationChangeCapture?
optionalonDurationChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onDurationChangeCapture
onEmptied?
optionalonEmptied:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEmptied
onEmptiedCapture?
optionalonEmptiedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEmptiedCapture
onEncrypted?
optionalonEncrypted:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEncrypted
onEncryptedCapture?
optionalonEncryptedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEncryptedCapture
onEnded?
optionalonEnded:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEnded
onEndedCapture?
optionalonEndedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onEndedCapture
onError?
optionalonError:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onError
onErrorCapture?
optionalonErrorCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onErrorCapture
onFocus?
optionalonFocus:FocusEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onFocus
onFocusCapture?
optionalonFocusCapture:FocusEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onFocusCapture
onGotPointerCapture?
optionalonGotPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onGotPointerCapture
onGotPointerCaptureCapture?
optionalonGotPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onGotPointerCaptureCapture
onInput?
optionalonInput:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onInput
onInputCapture?
optionalonInputCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onInputCapture
onInvalid?
optionalonInvalid:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onInvalid
onInvalidCapture?
optionalonInvalidCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onInvalidCapture
onKeyDown?
optionalonKeyDown:KeyboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onKeyDown
onKeyDownCapture?
optionalonKeyDownCapture:KeyboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onKeyDownCapture
onKeyPress?
optionalonKeyPress:KeyboardEventHandler<HTMLDivElement>
Deprecated
Use onKeyUp or onKeyDown instead
Inherited from
HTMLAttributes.onKeyPress
onKeyPressCapture?
optionalonKeyPressCapture:KeyboardEventHandler<HTMLDivElement>
Deprecated
Use onKeyUpCapture or onKeyDownCapture instead
Inherited from
HTMLAttributes.onKeyPressCapture
onKeyUp?
optionalonKeyUp:KeyboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onKeyUp
onKeyUpCapture?
optionalonKeyUpCapture:KeyboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onKeyUpCapture
onLoad?
optionalonLoad:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoad
onLoadCapture?
optionalonLoadCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadCapture
onLoadedData?
optionalonLoadedData:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadedData
onLoadedDataCapture?
optionalonLoadedDataCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadedDataCapture
onLoadedMetadata?
optionalonLoadedMetadata:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadedMetadata
onLoadedMetadataCapture?
optionalonLoadedMetadataCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadedMetadataCapture
onLoadStart?
optionalonLoadStart:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadStart
onLoadStartCapture?
optionalonLoadStartCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLoadStartCapture
onLostPointerCapture?
optionalonLostPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLostPointerCapture
onLostPointerCaptureCapture?
optionalonLostPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onLostPointerCaptureCapture
onMouseDown?
optionalonMouseDown:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseDown
onMouseDownCapture?
optionalonMouseDownCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseDownCapture
onMouseEnter?
optionalonMouseEnter:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseEnter
onMouseLeave?
optionalonMouseLeave:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseLeave
onMouseMove?
optionalonMouseMove:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseMove
onMouseMoveCapture?
optionalonMouseMoveCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseMoveCapture
onMouseOut?
optionalonMouseOut:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseOut
onMouseOutCapture?
optionalonMouseOutCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseOutCapture
onMouseOver?
optionalonMouseOver:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseOver
onMouseOverCapture?
optionalonMouseOverCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseOverCapture
onMouseUp?
optionalonMouseUp:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseUp
onMouseUpCapture?
optionalonMouseUpCapture:MouseEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onMouseUpCapture
onPaste?
optionalonPaste:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPaste
onPasteCapture?
optionalonPasteCapture:ClipboardEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPasteCapture
onPause?
optionalonPause:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPause
onPauseCapture?
optionalonPauseCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPauseCapture
onPlay?
optionalonPlay:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPlay
onPlayCapture?
optionalonPlayCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPlayCapture
onPlaying?
optionalonPlaying:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPlaying
onPlayingCapture?
optionalonPlayingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPlayingCapture
onPointerCancel?
optionalonPointerCancel:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerCancel
onPointerCancelCapture?
optionalonPointerCancelCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerCancelCapture
onPointerDown?
optionalonPointerDown:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerDown
onPointerDownCapture?
optionalonPointerDownCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerDownCapture
onPointerEnter?
optionalonPointerEnter:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerEnter
onPointerLeave?
optionalonPointerLeave:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerLeave
onPointerMove?
optionalonPointerMove:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerMove
onPointerMoveCapture?
optionalonPointerMoveCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerMoveCapture
onPointerOut?
optionalonPointerOut:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerOut
onPointerOutCapture?
optionalonPointerOutCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerOutCapture
onPointerOver?
optionalonPointerOver:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerOver
onPointerOverCapture?
optionalonPointerOverCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerOverCapture
onPointerUp?
optionalonPointerUp:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerUp
onPointerUpCapture?
optionalonPointerUpCapture:PointerEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onPointerUpCapture
onProgress?
optionalonProgress:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onProgress
onProgressCapture?
optionalonProgressCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onProgressCapture
onRateChange?
optionalonRateChange:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onRateChange
onRateChangeCapture?
optionalonRateChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onRateChangeCapture
onReset?
optionalonReset:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onReset
onResetCapture?
optionalonResetCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onResetCapture
onResize()?
optionalonResize: (dimensions) =>void
Callback triggered when the terminal is resized
Called whenever the terminal dimensions change, either due to container resizing (with auto-fit) or programmatic resize.
Parameters
dimensions
ITerminalDimensions
Object containing the new cols and rows values
Returns
void
Example
<InkCanvas
onResize={(dims) => {
console.log(`Terminal resized to ${dims.cols}x${dims.rows}`);
}}
>
<MyApp />
</InkCanvas>onScroll?
optionalonScroll:UIEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onScroll
onScrollCapture?
optionalonScrollCapture:UIEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onScrollCapture
onScrollEnd?
optionalonScrollEnd:UIEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onScrollEnd
onScrollEndCapture?
optionalonScrollEndCapture:UIEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onScrollEndCapture
onSeeked?
optionalonSeeked:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSeeked
onSeekedCapture?
optionalonSeekedCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSeekedCapture
onSeeking?
optionalonSeeking:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSeeking
onSeekingCapture?
optionalonSeekingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSeekingCapture
onSelect?
optionalonSelect:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSelect
onSelectCapture?
optionalonSelectCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSelectCapture
onStalled?
optionalonStalled:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onStalled
onStalledCapture?
optionalonStalledCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onStalledCapture
onSubmit?
optionalonSubmit:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSubmit
onSubmitCapture?
optionalonSubmitCapture:FormEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSubmitCapture
onSuspend?
optionalonSuspend:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSuspend
onSuspendCapture?
optionalonSuspendCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onSuspendCapture
onTimeUpdate?
optionalonTimeUpdate:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTimeUpdate
onTimeUpdateCapture?
optionalonTimeUpdateCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTimeUpdateCapture
onToggle?
optionalonToggle:ToggleEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onToggle
onTouchCancel?
optionalonTouchCancel:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchCancel
onTouchCancelCapture?
optionalonTouchCancelCapture:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchCancelCapture
onTouchEnd?
optionalonTouchEnd:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchEnd
onTouchEndCapture?
optionalonTouchEndCapture:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchEndCapture
onTouchMove?
optionalonTouchMove:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchMove
onTouchMoveCapture?
optionalonTouchMoveCapture:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchMoveCapture
onTouchStart?
optionalonTouchStart:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchStart
onTouchStartCapture?
optionalonTouchStartCapture:TouchEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTouchStartCapture
onTransitionCancel?
optionalonTransitionCancel:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionCancel
onTransitionCancelCapture?
optionalonTransitionCancelCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionCancelCapture
onTransitionEnd?
optionalonTransitionEnd:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionEnd
onTransitionEndCapture?
optionalonTransitionEndCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionEndCapture
onTransitionRun?
optionalonTransitionRun:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionRun
onTransitionRunCapture?
optionalonTransitionRunCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionRunCapture
onTransitionStart?
optionalonTransitionStart:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionStart
onTransitionStartCapture?
optionalonTransitionStartCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onTransitionStartCapture
onVolumeChange?
optionalonVolumeChange:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onVolumeChange
onVolumeChangeCapture?
optionalonVolumeChangeCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onVolumeChangeCapture
onWaiting?
optionalonWaiting:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onWaiting
onWaitingCapture?
optionalonWaitingCapture:ReactEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onWaitingCapture
onWheel?
optionalonWheel:WheelEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onWheel
onWheelCapture?
optionalonWheelCapture:WheelEventHandler<HTMLDivElement>
Inherited from
HTMLAttributes.onWheelCapture
part?
optionalpart:string
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
Inherited from
HTMLAttributes.part
popover?
optionalpopover:""|"auto"|"manual"|"hint"
Inherited from
HTMLAttributes.popover
popoverTarget?
optionalpopoverTarget:string
Inherited from
HTMLAttributes.popoverTarget
popoverTargetAction?
optionalpopoverTargetAction:"toggle"|"show"|"hide"
Inherited from
HTMLAttributes.popoverTargetAction
prefix?
optionalprefix:string
Inherited from
HTMLAttributes.prefix
property?
optionalproperty:string
Inherited from
HTMLAttributes.property
radioGroup?
optionalradioGroup:string
Inherited from
HTMLAttributes.radioGroup
rel?
optionalrel:string
Inherited from
HTMLAttributes.rel
resource?
optionalresource:string
Inherited from
HTMLAttributes.resource
results?
optionalresults:number
Inherited from
HTMLAttributes.results
rev?
optionalrev:string
Inherited from
HTMLAttributes.rev
role?
optionalrole:AriaRole
Inherited from
HTMLAttributes.role
rows?
optionalrows:number
Fixed number of rows for the terminal
If provided, the terminal will use this exact row count instead of auto-fitting to the container height.
See
cols for remarks on auto-fitting behavior
security?
optionalsecurity:string
Inherited from
HTMLAttributes.security
slot?
optionalslot:string
Inherited from
HTMLAttributes.slot
spellCheck?
optionalspellCheck:Booleanish
Inherited from
HTMLAttributes.spellCheck
style?
optionalstyle:CSSProperties
Inherited from
HTMLAttributes.style
suppressContentEditableWarning?
optionalsuppressContentEditableWarning:boolean
Inherited from
HTMLAttributes.suppressContentEditableWarning
suppressHydrationWarning?
optionalsuppressHydrationWarning:boolean
Inherited from
HTMLAttributes.suppressHydrationWarning
tabIndex?
optionaltabIndex:number
Inherited from
HTMLAttributes.tabIndex
terminalOptions?
optionalterminalOptions:Omit<ITerminalOptions,"disableStdin">
Full Xterm.js terminal options configuration
Provides fine-grained control over the terminal’s appearance and behavior.
All options from Xterm.js’s ITerminalOptions are supported except disableStdin,
which is always set to false internally.
Remarks
Common options include:
fontSize: Font size in pixelsfontFamily: Font family stringtheme: Color theme object with properties likebackground,foreground, etc.cursorStyle: ‘block’, ‘underline’, or ‘bar’cursorBlink: Whether the cursor should blink
See
https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/
Example
<InkCanvas
terminalOptions={{
fontSize: 16,
fontFamily: "JetBrains Mono, monospace",
theme: {
background: "#1a1b26",
foreground: "#a9b1d6",
},
cursorStyle: "bar",
cursorBlink: true,
}}
>
<MyApp />
</InkCanvas>title?
optionaltitle:string
Inherited from
HTMLAttributes.title
translate?
optionaltranslate:"yes"|"no"
Inherited from
HTMLAttributes.translate
typeof?
optionaltypeof:string
Inherited from
HTMLAttributes.typeof
unselectable?
optionalunselectable:"off"|"on"
Inherited from
HTMLAttributes.unselectable
vocab?
optionalvocab:string
Inherited from
HTMLAttributes.vocab