Agentic
Suggestion
Prompts the person can send in one click, as a row of pills above the composer. The row stays one line, scrolling sideways with faded edges.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
With the AI SDK
The label is the message. Send it as is, and disable the row while the agent answers.
With TanStack AI
Send the suggestion as the user's message with the chat's send function.
Examples
With icons
An icon before each prompt says what kind of task it starts.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Show a few starters above an empty composer, and send the label as the message as is. Disable the row while the agent works. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Suggestion sends nothing itself. onClick receives the prompt, and the application sends it. |
| Scope | Keep each prompt short enough to read at a glance; long prompts make the row scroll. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | The prompt. It is the pill's label and the text passed to onClick. |
| | — | Called with the suggestion. Send it as the message as is. |
| | — | A glyph before the words, such as a bug for a fix. |
| | false | Disable the row while the agent works, so nothing sends mid-turn. |
| | "Suggestions" | Names the row, a group of buttons, for screen readers. |