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

PropTypeDescriptionDefault
classNamestringThe class name to be applied to the component
showMultiplePackageOptionsbooleanWhether to show options for multiple package managerstrue
codeLanguagestringThe language of the code snippet (e.g., "shell")
lightThemestringThe theme to use for light mode
darkThemestringThe theme to use for dark mode
commandMapRecord <string, string>A map of package manager names to their respective commands