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

    5
  • Thinking Dots

    Thinking Dots

    2

More in AI chats

View all
  • AI Actions

    AI Actions

    355
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    21
  • AI Orb

    AI Orb

    198
  • Aquarium Prompt

    Aquarium Prompt

    126
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    64
  • AI Task List

    AI Task List

    192
  • Quota Banner

    Quota Banner

    30