---
id: portfolio.ds.chat-suggested-questions
name: "Chat Suggested Questions"
type: component
status: active
relations: [{"type":"composes","target":"portfolio.ds.chat-suggested-question"},{"type":"uses_token","target":"portfolio.ds.primitive-scale"},{"type":"uses_token","target":"portfolio.ds.spacing"}]
sources: ["packages/design-system/src/components/ChatSuggestedQuestions.astro","apps/portfolio-site/src/design-system/docs/chat-suggested-questions.astro","apps/portfolio-site/src/lib/designSystemRegistry.ts"]
catalog: ["apps/portfolio-site/src/design-system/docs/chat-suggested-questions.astro"]
previews: ["apps/portfolio-site/src/design-system/docs/chat-suggested-questions.astro"]
---
# Chat Suggested Questions

## Purpose
Offer optional starting questions without owning their answers.

## Contract
- Props: `questions?: readonly string[]`, `label?: string` (defaults to "Suggested questions") and `disabled?: boolean` (defaults to false). The group renders nonblank strings in their supplied order, preserving the original text. A missing, non-array or entirely blank/empty list renders nothing, including no group wrapper.
- Private to Chat Message List. In the catalog the group is nested under Chat Message List with Chat Suggested Question as its child. Its [standalone preview](/design-system/chat-suggested-questions/) supplies three sample questions for inspection only.
- Composes Chat Suggested Question as its own catalog child and canonical implementation. The group owns the labelled flex-wrap layout and uses `--primitive-space-2` between buttons and between rows; each child owns its label, decorative Lucide arrow and interaction styling.
- The group uses the same padding as Chat Assistant Message: `--primitive-space-4` above and below, `--spacing-block-left` on the left, and `--spacing-block-right` on the right.
- Passes disabled to its children; does not duplicate the button's normal, hover, focus-visible, pressed or disabled implementation.
- The group is presentational; it does not fetch answers, submit messages or manage the disabled lifecycle.

## Use
- Supply optional questions via Chat Message List. Pages, Chat itself and other product components must not import or render this group directly.

## Do Not Use
- Do not invent product knowledge, include provider logic or execute arbitrary generated markup.

## Accessibility
- When the label is omitted, empty or whitespace-only, the group is named "Suggested questions".
- In the standalone preview, Tab reaches enabled questions in order and skips every question when `Disabled` is true. At a 320px viewport, long sentences and unbroken words wrap without horizontal scrolling.

## Verification
- Check that missing and blank-only lists render nothing, valid labels keep their order, and disabled is passed to every button. Verify long/localized labels, wrapping and keyboard activation in the preview.
- Run the DS graph check, contract tests and browser verification before claiming implementation acceptance.
