Skip to content
Back to skills

Suggestions

ASecurity

Clickable suggestion chips (typically rendered above or below `ChatInput` to surface starter prompts). Reads `theme.suggestions` and `disabled` / `isLoading` from `ChatContext`.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aireact

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill suggestions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Suggestions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Suggestions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-suggestions/badge)](https://www.skillsdirectory.com/skills/reaviz-suggestions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# ChatSuggestions

Clickable suggestion chips (typically rendered above or below `ChatInput` to surface starter prompts). Reads `theme.suggestions` and `disabled` / `isLoading` from `ChatContext`.

## Imports

```tsx
import { ChatSuggestions, ChatSuggestion } from 'reachat';
import type { Suggestion } from 'reachat';
```

## ChatSuggestions

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `suggestions` | `Suggestion[]` | — | Array of `{ id, content }` items |
| `onSuggestionClick` | `(content: string) => void` | — | Fires with the clicked suggestion's content |
| `className` | `string` | — | Container class |
| `children` | `ReactElement` | — | Single child template — clones it per suggestion with `{ ...suggestion, onClick }` props |

`Suggestion`:

```ts
interface Suggestion {
  id: string;
  content: string;
}
```

Returns `null` when `suggestions` is empty.

## ChatSuggestion

The default chip rendered by `ChatSuggestions`. Built on reablocks `Button` (`variant="outline"`).

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `id` | `string` | — | Required |
| `content` | `string` | — | Display text |
| `onClick` | `(content: string) => void` | — | Click handler |

Honors `disabled` and `isLoading` from `ChatContext` (the chip becomes non-interactive).

## Default usage

```tsx
const suggestions = [
  { id: '1', content: 'Summarize this document' },
  { id: '2', content: 'Translate to French' },
  { id: '3', content: 'Explain like I\'m five' }
];

<ChatSuggestions
  suggestions={suggestions}
  onSuggestionClick={text => sendMessage(text)}
/>
```

## Custom chip rendering

Pass a single child element — `ChatSuggestions` clones it per suggestion, spreading the suggestion plus the click handler:

```tsx
<ChatSuggestions
  suggestions={suggestions}
  onSuggestionClick={sendMessage}
>
  <button className="my-chip" />
</ChatSuggestions>
```

## Theme keys

```
theme.suggestions.base
theme.suggestions.item.{base, icon, text}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.