Suggestion
A suggestion component that displays a horizontal row of clickable suggestions for user interaction.
The Suggestion component displays a horizontal row of clickable suggestions for user interaction.
Install using CLI
Install Manually
Copy and paste the following code in the same folder.
Usage with AI SDK
Build a simple input with suggestions users can click to send a message to the LLM.
Add the following component to your frontend:
pages/index.vue
Features
- Horizontal row of clickable suggestion buttons
- Customizable styling with variant and size options
- Flexible layout that wraps suggestions on smaller screens
- click event that emits the selected suggestion string
- Support for both individual suggestions and suggestion lists
- Clean, modern styling with hover effects
- Responsive design with mobile-friendly touch targets
- TypeScript support with proper type definitions
Examples
Usage with AI Input
Props
<Suggestion />
clickevent: Event
''Emits
<Suggestion />
clickstring
''