When to use it
Fill your composer with the chosen value so people can edit before sending.
Native example
Fill your composer with the chosen value so people can edit before sending.
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
)
}Reference
The primary shared and platform-specific options exposed by LumenPromptSuggestions.
| API | Values or type | Default | Description |
|---|---|---|---|
| suggestions / label / disabled | label and optional value / group name / disable all | required / Suggested prompts / false | Fill your composer with the chosen value so people can edit before sending. |
Native behavior
Fill your composer with the chosen value so people can edit before sending.
Named group of buttons; renders nothing without suggestions.
Shared component