Interaction
Cursor Highlight
Highlight the terminal cell under the mouse cursor
Cursor highlight adds a visual overlay on the cell under the mouse cursor. Enable it on the root TUI component.
Cursor Highlight
Usage
<TUI cursorHighlight cursorHighlightColor="#8888ff" cursorHighlightOpacity={0.2}>
<box border>
<text>Move the mouse over cells to see the highlight</text>
</box>
</TUI>Props
| Prop | Type | Default | Description |
|---|---|---|---|
cursorHighlight | boolean | false | Enable cell highlighting |
cursorHighlightColor | string | gray | CSS color for highlight |
cursorHighlightOpacity | number | 0.15 | Opacity of highlight |
Related
- Pointer Events mouse handler reference.