Tesserae

EditableArea

Description

EditableArea is an inline editing component for multi-line text. It displays formatted text until the user enters edit mode, then swaps to a textarea and supports save or cancel behavior.

Use it when short display text is not enough and the user may need to edit notes, descriptions, or other paragraph-style content in place.

Usage

Create an EditableArea(...), optionally style it with text-formatting helpers, and register OnSave(...) to validate or persist edits.

Methods

  • OnSave(SaveEditHandler onSave) registers a callback that can accept or reject the edited value.
  • SetText(string text) updates the displayed text or the textarea value, depending on edit mode.
  • AsObservable() returns an IObservable<string> for the current text.
  • Render() returns the wrapper element that contains the display and edit states.

Properties

  • Size controls the text size in both display and edit modes.
  • Weight controls the text weight.
  • TextAlign controls text alignment.
  • IsEditingMode gets or sets whether the textarea editing UI is active.

See also

Referenced by

© 2026 Tesserae. All rights reserved.