ink-web-ui
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 cursor
  • Ctrl+A / Ctrl+E - Jump to line start/end
  • Ctrl+K - Delete current line
  • tab - Insert 2-space indent
  • PgUp/PgDn - Page navigation
  • backspace/delete - Delete characters

On this page