Skip to content
AI Elements

Suggestions

Server Component

Horizontal row of prompt suggestion chips.

Import

tsx
import { Suggestions } from "@cronus-ui/ui";
bash
npx cronus-ui add suggestion

Examples

API Reference

Generated from the component's exported types.

SuggestionsLabels

Skip SuggestionsLabels props table
PropTypeDefaultDescription
suggestions*
string

SuggestionsProps

Extends HTMLAttributes<HTMLElement>

Skip SuggestionsProps props table
PropTypeDefaultDescription
ref
Ref<HTMLElement>Ref forwarded to the underlying DOM node.
labels
Partial<SuggestionsLabels>Override default English strings.

SuggestionProps

Extends Omit<ButtonProps, "onClick">

Skip SuggestionProps props table
PropTypeDefaultDescription
suggestion*
string
onClick
(suggestion: string) => void