PromptSuggestions
Example prompts before a thread starts: up to three quiet lines that take a fill on hover and go once a prompt is sent.
function Basic() {
const [draft, setDraft] = useState("");
return (
<div className="flex w-full max-w-640 flex-col gap-12">
{draft === "" && <PromptSuggestions suggestions={suggestions} onSelect={setDraft} />}
<Composer value={draft} onValueChange={setDraft} aria-label="Message all models" placeholder="Message 3 models" />
</div>
);
}import { PromptSuggestions } from "@logicplanes/kaeso-ui/playground";Props
align"start" | "center" = startAligns the suggestions at the start or in the center.
aria-labelstringThe list's accessible name. Defaults to "Example prompts" in the provider's language.
onSelect(prompt: string) => voidPuts the prompt in the composer (or sends it).
suggestionsstring[]Up to three short prompts; more are left out.