AsterUIDocsv1.0.2

Docs / Component reference

SuggestionChips

Offer short replies or starter questions. Selecting one passes its value back to the caller.

Suggestion chips example

Install

sh
npx @fierst/ui@1.0.2 add suggestion-chips

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/suggestion-chips: SuggestionChips.

Download the registry source for suggestion-chips 1.0.2.

API contracts

ts
export function SuggestionChips({
  prompts,
  onSelect,
  class: extraClass,
}: {
  prompts: readonly string[];
  onSelect: (prompt: string) => void;
  class?: string;
})