re-cinq

Prompt Chips

AI chats

About

A row of clickable suggested-prompt pills for an AI chat composer that fills the input with the picked text.

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

Code

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

Usage.tsx

"use client";

import PromptChips from "@/components/ui/prompt-chips";
import * as React from "react";

const samplePrompts = [
  "Summarize this thread",
  "Draft a polite follow-up",
  "What's the delivery status?",
  "Translate to French",
];

export default function PromptChipsDemo() {
  const [lastPicked, setLastPicked] = React.useState<string | null>(null);

  return (
    <div className="flex w-full flex-col items-center gap-6 bg-background p-10 text-foreground">
      <PromptChips prompts={samplePrompts} onPick={setLastPicked} />
      {lastPicked !== null && (
        <p className="text-sm text-muted-foreground">
          Picked:{" "}
          <span className="font-medium text-foreground">{lastPicked}</span>
        </p>
      )}
    </div>
  );
}

More by re-cinq

View all
  • Thinking Indicator

    Thinking Indicator

    2
  • Thinking Dots

    Thinking Dots

    1

More in AI chats

View all
  • AI Actions

    AI Actions

    326
  • Agent Chat

    Agent Chat

    18
  • Message Thread

    Message Thread

    45
  • System Message

    System Message

    58
  • Color Picker

    Color Picker

    110
  • Attachments

    Attachments

    22
  • Environment Variables

    Environment Variables

    14
  • AI Diff

    AI Diff

    74