Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
AIAndroid

Prompt suggestions

Offer starter prompts for an empty conversation.

Public APILumenPromptSuggestionsAndroid / Compose

Native example

Use Prompt suggestions

Fill your composer with the chosen value so people can edit before sending.

Prompt suggestions rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun StarterPromptsExample(onPrompt: (String) -> Unit) {
    LumenPromptSuggestions(
        suggestions = listOf(
            LumenPromptSuggestion("Summarize this page"),
            LumenPromptSuggestion("Draft a reply", "Draft a short, friendly reply to this message.")
        ),
        onSuggestionSelect = onPrompt
    )
}
Android
Starter prompts as wrapping pills; selecting one hands its value to the host so it can fill or send the composer.

Reference

Public API

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

APIValues or typeDefaultDescription
suggestions / label / disabledlabel and optional value / group name / disable allrequired / Suggested prompts / falseFill your composer with the chosen value so people can edit before sending.

Native behavior

Design and accessibility

When to use it

Fill your composer with the chosen value so people can edit before sending.

Accessibility

Named group of buttons; renders nothing without suggestions.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module