Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
AIApple

Prompt suggestions

Offer starter prompts for an empty conversation.

Public APILumenPromptSuggestionsApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Prompt suggestions

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

Prompt suggestions rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
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
        }
    }
}
Apple
Starter prompts as wrapping pill buttons; choosing one hands its value to the host.

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 NativeAndroid / Compose Web
Apple docsSwiftUI package