# 何时使用

- 展示一排**预设提示词**（标签 + 可选图标），点击写入输入或触发业务
- 支持横向/纵向、换行与完全自定义 `itemRender`
- 不适用：与「继续问」列表样式不一致时可用 `Suggestion`

---

# API

## Prompt（列表项）

| 属性     | 类型                         | 是否必传 | 默认 | 说明 |
| -------- | ---------------------------- | -------- | ---- | ---- |
| prompt   | `string`                     | 是       | -    | 预设提示全文 |
| label    | `string`                     | 是       | -    | 展示标签 |
| icon     | `string` \| `React.ReactElement` | 否   | -    | 图片 URL 或元素 |
| disabled | `boolean`                    | 否       | `false` | |

## PromptProps（组件）

| 属性       | 类型 | 默认 | 说明 |
| ---------- | ---- | ---- | ---- |
| items      | `Prompt[]` | - | 必传列表 |
| direction  | `'horizontal' \| 'vertical'` | `'horizontal'` | |
| wrap       | `boolean` | `false` | 横向是否换行 |
| onClick    | `(item: Prompt) => void` | - | |
| itemRender | `(item: Prompt) => React.ReactNode` | - | 自定义每一项 |
| className  | `string` | - | |
| style      | `React.CSSProperties` | - | |

---

# FAQ

- 组件导出名称为 `Prompts`，类型为 `PromptProps` / `Prompt`。
