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

    94

More in AI chats

View all
  • AI Actions

    AI Actions

    319
  • Color Picker

    Color Picker

    82
  • Agent Chat

    Agent Chat

    17
  • Message Thread

    Message Thread

    36
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • System Message

    System Message

    54
  • Suggestions

    Suggestions

    28
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    38