Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.

Command Palette

Search for a command to run...

Docs
Script Copy Button

Script Copy Button

Copy code to clipboard

npm run shadcn add button

Installation

Usage

import { ScriptCopyBtn } from "@/components/magicui/script-copy-btn";
<ScriptCopyBtn />

Props

PropTypeDefaultDescription
classNamestring-The class name to be applied to the component
showMultiplePackageOptionsbooleantrueWhether to show options for multiple package managers
codeLanguagestring-The language of the code snippet (e.g., "shell")
lightThemestring-The theme to use for light mode
darkThemestring-The theme to use for dark mode
commandMapRecord<string, string>-A map of package manager names to their respective commands