RichTextEditor
A basic text editor component tailored for editing and displaying RichText content.
Parameters
The RichTextState holding the text and its attributes.
The modifier to be applied to the text field.
Controls the enabled state of the text field. When false, the text field is not focusable or editable, and pointer interactions are disabled.
Controls the editable state of the text field. When true, the text cannot be modified, but it can still be focused and spans can still be clicked.
The TextStyle to be applied to the text.
Software keyboard options that configure keyboard behaviors such as keyboard type and IME action.
Called when the user triggers an IME action on the software keyboard.
Whether the text field should be single line, or multi line with specific bounds.
Callback that is executed when a new text layout is calculated.
Scroll state that manages the vertical scroll position of the editor content.
The MutableInteractionSource representing the stream of interactions for this text field.
The brush used to draw the cursor.
Allows modifying how the text field is drawn with decorations around it (e.g. placeholder, border).
A resolver that specifies how AttributeContainers should be translated into visually rendered Compose SpanStyles.
A resolver that specifies how list markers (e.g. bullets, ordered numbers) should be rendered.
Optional callback invoked when a RichSpan is tapped or clicked.
The list of AutocompleteTrigger patterns to observe during typing.
Callback invoked whenever the active AutocompleteMatch changes, or null when no trigger is matched.