Suggestion Chips

Row of rounded suggestion chips such as Summarize or Find bugs that call onSelect when clicked. Use them as prompt starters under a React AI chat input.

src/registry/ui/suggestion-chips.tsx/r/suggestion-chips.json

Chips

Installation#

bash
npx shadcn@latest add @minidev/suggestion-chips

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/suggestion-chips.json

Usage#

tsx
import { SuggestionChips } from "@/components/ui/suggestion-chips"

export function Example() {
  return (
    <SuggestionChips items={["Add yearly toggle", "Make it responsive", "Dark mode"]} />
  )
}

API reference#

SuggestionChips props
PropTypeDefault
itemsstring[]["Summarize", "Rewrite", "Find bugs"]
onSelect(item: string) => void-
classNamestring-

Examples#

All AI chat UI components for React

Learn more