Text area
A multi-line text editor with vertical scrolling, line-kill (Ctrl+K), word movement and the full readline binding set. Great for commit messages, notes, or any longform input.
Install the package
Every component ships in the single dart_tui package.
$dart pub add dart_tui

TextAreaModel(
placeholder: 'Write your message…',
width: 60,
maxHeight: 10,
);TextAreaModel
| Property | Type | Description |
|---|---|---|
| value | String | Current multi-line content. |
| cursorRow / cursorCol | int | Cursor position. |
| width | int | Editor width in columns. Defaults to 60. |
| maxHeight | int | Visible rows before scrolling. Defaults to 10. |
| charLimit | int | Max characters. 0 = unlimited. |
| placeholder | String | Shown when empty. |
Keybindings
ctrl+a / ctrl+eStart / end of line
ctrl+kKill to end of line
alt+← / alt+→Word left / right
ctrl+wDelete previous word