When to use it
Fill your composer with the chosen value so people can edit before sending.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Fill your composer with the chosen value so people can edit before sending.
import LumenUI
import SwiftUI
struct SuggestionsExample: View {
@State private var draft = ""
var body: some View {
LumenPromptSuggestions([
LumenPromptSuggestion("Summarize this thread"),
LumenPromptSuggestion("Translate", value: "Translate the last answer to Spanish")
]) { prompt in
draft = prompt
}
}
}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