Textarea is a fully featured multi-line text editor. It supports cursor movement across wrapped lines, word-level operations, optional line numbers, a scrolling viewport, and separate focused/blurred styles.
Quick start
Constructor
Reading and setting content
Focus and blur
Width and height
Placeholder
placeholder style (dim by default) and disappears as soon as any content is entered.
Character limit
Line numbers
Custom prompt
The prompt character appears at the start of each line. You can provide a static string or a dynamic function:Line info
Inspecting state
Key bindings
Text input
Single-line text input.
Viewport
Scrollable read-only content area.