ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π shadcn/directory/ai-elements/open-in-chat β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
A dropdown menu for opening queries various Al chat platforms including ChatGPT, Claude, T3, Scira, and v0.
[ ] Copy Markdown Open
The OpenIn component provides a dropdown menu that allows users O open queries in different Al chat platforms with a single click.
Preview Code
Open in chat
ai-elements shadcn manual
npx ai-elements@latest add open-in-chat
import { OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInCursor, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, } from '@/components/ai-elements/open-in-chat';
<OpenIn query="How can I implement authentication in Next.js?"> <OpenInTrigger /> <OpenInContent> <OpenInChatGPT /> <OpenInClaude /> <OpenInT3 /> <OpenInScira /> <OpenInv0 /> <OpenInCursor /> </OpenInContent> </OpenIn>| β’ Pre-configured links to popular Al chat platforms | |-| | β’ Context-based query passing for cleaner API | | β’ Customizable dropdown trigger button | | Automatic URL parameter encoding for queries | | β’ Support for ChatGPT, Claude, T3 Chat, Scira Al, vo, and Cursor | | β« Branded icons for each platform | | β« TypeScript support with proper type definitions | | Accessible dropdown menu with keyboard navigation | | β’ External link indicators for clarity |
β’ ChatGPT - Opens query in OpenAl's ChatGPT with search hints
β« Claude - Opens query in Anthropic's Claude Al
β«T3 Chat - Opens query in T3 Chat platform
β« Scira Al - Opens query in Scira's Al assistant
β’ vo-Opens query in Vercel's vo platform
β’ Cursor - Opens query in Cursor Al editor
Props
<OpenIn />Prop: query? Type: string
Prop: ...props? Type: React.ComponentProps<typeof DropdownMenu>
Prop: children? Type: React.ReactNode
Prop: ...props? Type: React.ComponentProps<typeof DropdownMenuTrigger>
Prop: className? Type: string
Prop: ...props? Type: React.ComponentProps<typeof DropdownMenuContent>
Prop: ...props? Type: React.ComponentProps<typeof DropdownMenuItem>
<OpenInItem />, <OpenInLabel />, <OpenInSeparator /> Additional composable components for custom dropdown menu items, labels, and separators that follow the same props pattern as their underlying radix-ui counterparts.
< Message Displays a chat interface message from either a user or an..
Plan > A collapsible plan component for displaying AI-generated
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ