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