Docs
Script Copy Button

Script Copy Button

Copy code to clipboard

npm run nyxb add button

Installation

npx nyxb@latest add 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