Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FormsAndroid

Mentions

Insert literal mention suggestions into controlled native multiline text.

Public APILumenMentionsAndroid / Compose

Native example

Use Mentions

Hosts control text and UTF-16 selection atomically. Native iOS and Android composition is preserved; React Native hosts supply isComposing when available. ASCII mention values use literal filtering and safe token boundaries.

Mentions rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulator
kotlin
LumenMentions("Message", value, onValueChange, options)

Reference

Public API

The primary shared and platform-specific options exposed by LumenMentions.

APIValues or typeDefaultDescription
value / options / triggerControlled text and selection / stable suggestions / literal triggerRequired / required / @Preserves host state and inserts enabled validated suggestions.

Native behavior

Design and accessibility

When to use it

Hosts control text and UTF-16 selection atomically. Native iOS and Android composition is preserved; React Native hosts supply isComposing when available. ASCII mention values use literal filtering and safe token boundaries.

Accessibility

Named multiline input and enabled suggestion actions with controlled selection.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module