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 anIObservable<string>for the current text.Render()returns the wrapper element that contains the display and edit states.
Properties
Sizecontrols the text size in both display and edit modes.Weightcontrols the text weight.TextAligncontrols text alignment.IsEditingModegets or sets whether the textarea editing UI is active.