variable-toolbar.tsx
基本信息
- 类型: React 组件 (TSX)
- 路径:
src/components/prompts/variable-toolbar.tsx
功能描述
Pre-fill name with selected text when popover opens
导出内容
- <code>VariableToolbar</code> - 函数
依赖导入
reactnext-intl@/components/ui/button@/components/ui/input@/components/ui/label@/components/ui/popoverlucide-react
Props/接口
interface VariableToolbarProps {
onInsert: (variable: string) => void;
getSelectedText?: () => string;
}
使用说明
在 JSX/TSX 中导入使用