suiss/ui · AI
Suggestion
Short prompts that people can send to an agent in one click, in a row above the prompt input.
A suggestion is a prompt you send without typing. Each one is a Button with the prompt as its label. Put a row of them above the Prompt Input.
Installation
Suggestions are built with Button and Input Group.
Or use the suiss/ui CLI:
Usage
The row scrolls sideways when the suggestions do not fit, and shrink-0 keeps each label on one line.
AI SDK
The label is the message. Send it as is.
API Reference
See Button.
Accessibility
- Each suggestion is a button whose label is the prompt, so it is announced as written.
- Keep labels short and specific, so the row can be scanned quickly.