Skip to content
synccn

Prompt Suggestions

New

Starter prompt cards for an empty chat, or follow-up chips under an answer.

Pick a suggestion

Installation

$ pnpm dlx shadcn@latest add @synccn/prompt-suggestions

First time in this project? Connect synccn with one command.

Usage

import { PromptSuggestions } from "@/components/ui/prompt-suggestions";<PromptSuggestions variant="cards" suggestions={starters} onSelect={send} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

PromptSuggestions

Starter prompts for an empty chat (cards) or follow-up questions under an answer (chips).

  • suggestionsrequired
    PromptSuggestion[]

    —

  • onSelectrequired
    (prompt: string) => void

    Called with the prompt to send.

  • variant
    "chips" | "cards"

    Default "chips"

    "chips" for follow-ups under an answer, "cards" for an empty chat.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label