Subhan Uddin

AI Prompt Suggestion Chips

AI chats

About

A row of categorized quick-prompt suggestion chips that spring into view and populate an AI prompt input with one tap.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds AI Prompt Suggestion Chips to your project and fits it to your theme.

Code

How AI Prompt Suggestion Chips is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import AiPromptChips from "@/components/ui/ai-prompt-chips";
import { useState } from "react";

export default function AiPromptChipsDemo() {
  const [prompt, setPrompt] = useState("");

  return (
    <div className="w-full min-h-screen flex flex-col items-center justify-center gap-4 p-8 bg-black">
      <textarea
        value={prompt}
        onChange={(e) => setPrompt(e.target.value)}
        placeholder="Ask AI to build something..."
        className="w-full max-w-[800px] h-20 resize-none rounded-xl bg-white/[0.04] border border-white/[0.08] text-sm text-white placeholder:text-neutral-500 p-3 focus:outline-none focus:border-white/20"
      />
      <AiPromptChips theme="dark" onSelectPrompt={(p) => setPrompt(p)} />
    </div>
  );
}

Dependencies

More by Subhan Uddin

View all
  • Dither Donut Chart

    Dither Donut Chart

    126
  • Interactive 3D Card Carousel

    Interactive 3D Card Carousel

    89
  • Dither Growth Chart

    Dither Growth Chart

    31
  • Dots Ring

    Dots Ring

    30
  • Waveform Loader

    Waveform Loader

    19
  • Page Transition

    Page Transition

    18
  • Intersecting Rings

    Intersecting Rings

    15
  • Bouncing Square

    Bouncing Square

    15

More in AI chats

View all
  • AI Actions

    AI Actions

    352
  • Aquarium Prompt

    Aquarium Prompt

    115
  • Research Report

    Research Report

    7
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    62
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    204
  • Suggestions

    Suggestions

    40