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


Docs
Script Copy Button

Script Copy Button

Copy code to clipboard

npm run shadcn add button

Installation

npx shadcn@latest add "https://magicui.design/r/script-copy-btn"

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