ComponentsModern
Text Area
Code editor with gutter line numbers, blinking cursor, auto-indent, and status bar showing position and file metrics.
Demo
Features
- Gutter with line numbers and active line highlight
- Blinking cursor with character-level positioning
- Auto-indent on enter (preserves leading whitespace)
- Tab key inserts 2-space indent
- Delete entire lines with Ctrl+K
- Viewport scrolling that follows cursor
- Status bar showing line, column, total lines, character count
- Modified indicator on title bar
- TypeScript file simulation with realistic content
Keybindings
arrows- Move cursorCtrl+A/Ctrl+E- Jump to line start/endCtrl+K- Delete current linetab- Insert 2-space indentPgUp/PgDn- Page navigationbackspace/delete- Delete characters