npm run shadcn add button
安装
使用方法
import { ScriptCopyBtn } from "@/components/magicui/script-copy-btn";
<ScriptCopyBtn />
属性
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
className | string | - | 要应用于组件的类名 |
showMultiplePackageOptions | boolean | true | 是否显示多个包管理器的选项 |
codeLanguage | string | - | 代码片段的语言(例如,“shell”) |
lightTheme | string | - | 浅色模式使用的主题 |
darkTheme | string | - | 深色模式使用的主题 |
commandMap | Record<string, string> | - | 包管理器名称到其相应命令的映射 |