Open In Chat

A dropdown menu for opening queries in various AI chat platforms including ChatGPT, Claude, T3, Scira, and v0.

The OpenIN component provides a dropdown menu that allows users to open queries in different AI chat platforms with a single click.

Install using CLI

AI Elements Vue
shadcn-vue CLI
npx ai-elements-vue@latest add open-in-chat

Install Manually

Copy and paste the following code in the same folder.

OpenIn.vue
OpenInTrigger.vue
OpenInContent.vue
OpenInItemLink.vue
providers/items/OpenInChatGPT.vue
providers/items/OpenInClaude.vue
providers/items/OpenInCursor.vue
providers/items/OpenInScira.vue
providers/items/OpenInT3.vue
providers/items/OpenInv0.vue
providers/icons/ChatGPT.vue
providers/icons/Claude.vue
providers/icons/Cursor.vue
providers/icons/Github.vue
providers/icons/Scira.vue
providers/icons/V0.vue
providers/icons/index.ts
providers/index.ts
context.ts
index.ts
<script setup lang="ts">
import { DropdownMenu } from '@repo/shadcn-vue/components/ui/dropdown-menu'
import { provideOpenInContext } from './context'

defineOptions({
  inheritAttrs: false,
})

const props = defineProps<{
  query: string
}>()

provideOpenInContext({ query: props.query })
</script>

<template>
  <DropdownMenu v-bind="$attrs">
    <slot />
  </DropdownMenu>
</template>

Features

  • Pre-configured links to popular AI 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 AI, v0, and Cursor
  • Branded icons for each platform
  • TypeScript support with proper type definitions
  • Accessible dropdown menu with keyboard navigation
  • External link indicators for clarity

Supported Platforms

  • ChatGPT - Opens query in OpenAI's ChatGPT with search hints
  • Claude - Opens query in Anthropic's Claude AI
  • T3 Chat - Opens query in T3 Chat platform
  • Scira AI - Opens query in Scira's AI assistant
  • v0 - Opens query in Vercel's v0 platform
  • Cursor - Opens query in Cursor AI editor

Props

<OpenIn />

querystring
''
The query text to be sent to all AI platforms.

<OpenInContent />

classstring
''
Additional CSS classes to apply to the dropdown content.