variable-toolbar.tsx

variable-toolbar.tsx

基本信息

  • 类型: React 组件 (TSX)
  • 路径: src/components/prompts/variable-toolbar.tsx

功能描述

Pre-fill name with selected text when popover opens

导出内容

  • <code>VariableToolbar</code> - 函数

依赖导入

  • react
  • next-intl
  • @/components/ui/button
  • @/components/ui/input
  • @/components/ui/label
  • @/components/ui/popover
  • lucide-react

Props/接口

interface VariableToolbarProps {
onInsert: (variable: string) => void;
getSelectedText?: () => string;
}

使用说明

在 JSX/TSX 中导入使用

← 返回目录