Suggestion

Horizontal quick-action suggestion pills that prompt user follow-up questions.

The Suggestions component displays horizontally scrollable chips containing recommended prompt questions or actions.

Usage

tsx
import { Suggestions, Suggestion } from "@celestia-project/ui"
export function MySuggestions() {  const handleSelect = (text: string) => {    console.log("Selected prompt:", text)  }
  return (    <Suggestions>      <Suggestion suggestion="Scaffold Hono CRUD route" onClick={handleSelect} />      <Suggestion suggestion="Add Better Auth Google OAuth" onClick={handleSelect} />      <Suggestion suggestion="Create Drizzle Migration" onClick={handleSelect} />    </Suggestions>  )}

Props Reference

ComponentPropTypeDescription
SuggestionsuggestionstringThe suggestion label and text value passed on click.
SuggestiononClick(text: string) => voidCallback triggered when the suggestion pill is clicked.