Components
TextArea
Multi-line text editor with line numbers, cursor navigation, and viewport scrolling, inspired by Charm's bubbles/textarea
Demo
Click the terminal below to focus it.
Features
- Multi-line editing — full text editing with newline insertion
- Line numbers — gutter with line numbers that adjust width dynamically
- Blinking cursor — virtual cursor with character-level positioning
- Viewport scrolling — vertical scrolling when content exceeds view height
- Word navigation — ctrl+left/right to jump between words
- Line deletion — ctrl+k removes the current line
- Page navigation — page up/down for fast scrolling
- Status bar — shows current line, column, total lines, and character count
Keybindings
↑↓←→move cursorenterinsert newlinebackspacedelete character/merge linesctrl+←→word navigationctrl+kdelete linectrl+a/estart/end of linepgUp/pgDnpage navigation