Code Package Managers
Displays a list of install commands for different package managers.
Preview
Section titled “Preview”<CodePackageManagers> Props
Section titled “<CodePackageManagers> Props”The <CodePackageManagers> component accepts the following props:
packageManagers
Section titled “packageManagers”type: PackageManager[]
default: ['pnpm', 'npm', 'yarn', 'bun']
The package managers to use.
packages
Section titled “packages”type: string
The packages to install. If you want to install multiple packages, you can pass a space-separated string.
type: boolean
default: false
Whether to install the packages as dev dependencies.