8starlabs

Open In Chat

AI chats 4

About

A dropdown or inline icon row that opens ChatGPT, Claude, Perplexity, Grok, or v0 in a new tab with a given prompt pre-filled into the URL.

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

Code

How Open In Chat is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import OpenInChat from "@/components/ui/open-in-chat";

export default function OpenInChatDemo() {
  return (
    <div className="flex items-center justify-center p-10">
      <OpenInChat prompt="Summarize this page and list the key decisions." />
    </div>
  );
}

Dependencies

More by 8starlabs

View all
  • Partition Bar

    Partition Bar

    102

More in AI chats

View all
  • AI Actions

    AI Actions

    326
  • Agent Chat

    Agent Chat

    18
  • Attachments

    Attachments

    23
  • Message Thread

    Message Thread

    49
  • Memory Scope

    Memory Scope

    3
  • Color Picker

    Color Picker

    118
  • Environment Variables

    Environment Variables

    16
  • Chat Bubble

    Chat Bubble

    190