Mark Yo

Prompt Suggestions

AI chats

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>
  );
}

Dependencies

More by Mark Yo

View all
  • Loader

    Loader

    72
  • Pricing Table

    Pricing Table

    29
  • Bento Grid

    Bento Grid

    18
  • Expandable Tabs

    Expandable Tabs

    18
  • Wallet Card

    Wallet Card

    15
  • Image Gallery

    Image Gallery

    11
  • CTA Section

    CTA Section

    10
  • Approval Queue

    Approval Queue

    9

More in AI chats

View all
  • AI Actions

    AI Actions

    369
  • Message Parts

    Message Parts

    4
  • Aquarium Prompt

    Aquarium Prompt

    195
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    24
  • Research Report

    Research Report

    8
  • Commit

    Commit

    45
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    20