Open In
Open a prompt in ChatGPT, Claude, Cursor, and other chats.
Import
tsx
import { OpenIn } from "@cronus-ui/ui";
bash
npx cronus-ui add open-in-chat
Examples
.cronus
No audit fixture declares this family in .cronus yet.
API Reference
Generated from the component's exported types.
OpenInLabels
| Prop | Type | Default | Description |
|---|---|---|---|
trigger* | string | — | — |
scira* | string | — | — |
chatgpt* | string | — | — |
claude* | string | — | — |
t3* | string | — | — |
v0* | string | — | — |
cursor* | string | — | — |
OpenInProps
Extends ComponentProps<typeof DropdownMenu>
| Prop | Type | Default | Description |
|---|---|---|---|
query* | string | — | — |
labels | Partial<OpenInLabels> | — | Override default English strings. |
open | boolean | — | Controlled open state. |
defaultOpen | boolean | — | Uncontrolled initial open state. |
onOpenChange | (open: boolean) => void | — | Called when the open state changes. |
children | ReactNode | — | Contents of the component. |
modal | boolean | — | When true, interaction outside the surface is blocked. |
OpenInContentProps
Extends ComponentProps<typeof DropdownMenuContent>
| Prop | Type | Default | Description |
|---|---|---|---|
side | "top" | "right" | "bottom" | "left" | — | Preferred side of the trigger. |
align | "start" | "center" | "end" | — | Alignment along the chosen side. |
sideOffset | number | — | Distance in pixels from the trigger. |
alignOffset | number | — | Offset along the alignment axis. |
forceMount | boolean | — | Keep the node mounted when closed, for exit animation. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInItemProps
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInLabelProps
Extends ComponentProps<typeof DropdownMenuLabel>
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInSeparatorProps
Extends ComponentProps<typeof DropdownMenuSeparator>
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional class names merged onto the root. |
OpenInTriggerProps
Extends ButtonProps
| Prop | Type | Default | Description |
|---|---|---|---|
labels | Partial<Pick<OpenInLabels, "trigger">> | — | Override default English strings. |
variant | string | — | Visual variant. |
size | string | — | Control size. |
asChild | boolean | — | Render as the child element via Slot. |
disabled | boolean | — | Disables pointer and keyboard interaction. |
type | string | — | Native type of the underlying element. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInChatGPTProps
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInClaudeProps
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInT3Props
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInSciraProps
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInv0Props
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
OpenInCursorProps
Extends ComponentProps<typeof DropdownMenuItem>
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | — | Disables pointer and keyboard interaction. |
onSelect | (event: Event) => void | — | Called when the item is chosen. |
textValue | string | — | Text used for typeahead. Defaults to the item's text. |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |