About
A grid or pill row of clickable suggested-prompt cards for an empty chat screen that filters, highlights matches, and animates in as the composer text changes.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Prompt Suggestions to your project and fits it to your theme.
Code
How Prompt Suggestions is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { PromptSuggestions } from "@/components/ui/prompt-suggestions";
import type { PromptSuggestion } from "@/components/ui/prompt-suggestions";
import { FileText, Bug, Mail, BarChart3 } from "lucide-react";
const suggestions: PromptSuggestion[] = [
{
id: "1",
title: "Summarize a document",
subtitle: "Key points, decisions and open questions",
icon: <FileText className="size-4" />,
},
{
id: "2",
title: "Debug a failing test",
subtitle: "Find the root cause and propose a fix",
icon: <Bug className="size-4" />,
},
{
id: "3",
title: "Draft a follow-up email",
subtitle: "Friendly, concise, with clear next steps",
icon: <Mail className="size-4" />,
},
{
id: "4",
title: "Analyze a CSV export",
subtitle: "Trends, outliers and a short report",
icon: <BarChart3 className="size-4" />,
},
];
export default function PromptSuggestionsDemo() {
return (
<div className="mx-auto w-full max-w-md">
<PromptSuggestions
suggestions={suggestions}
onSelect={(prompt) => console.log("selected prompt:", prompt)}
/>
</div>
);
}
















