# Suggestions

Follow-up prompts the user can send with one click.

- **Use it for**: Follow-up prompts sent or filled with one click.
- **Not for**: Choices the assistant needs answered to continue. Try [ClarificationRequest](https://unseenui.com/components/clarification-request/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Suggestions } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<Suggestions variant="chips" items={prompts} onSelect={setDraft} mode="fill" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `disabled` | `boolean` |  |
| `items` (required) | `string[]` |  |
| `mode` | `"send" \| "fill"` |  |
| `onSelect` (required) | `(text: string, mode: "fill" \| "send") => void` |  |
| `variant` | `"list" \| "cards" \| "chips"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[Chat](https://unseenui.com/components/chat/), [PromptInput](https://unseenui.com/components/prompt-input/), [Message](https://unseenui.com/components/message/), [StreamingResponse](https://unseenui.com/components/streaming-response/), [MessageActions](https://unseenui.com/components/message-actions/), [Attachment](https://unseenui.com/components/attachment/), [AttachmentTray](https://unseenui.com/components/attachment-tray/), [FileDropzone](https://unseenui.com/components/file-dropzone/), [ModelSelector](https://unseenui.com/components/model-selector/), [FeedbackCapture](https://unseenui.com/components/feedback-capture/), [Reasoning](https://unseenui.com/components/reasoning/), [SuggestTextarea](https://unseenui.com/components/suggest-textarea/)

Page: https://unseenui.com/components/suggestions/
