Code Package Managers
Displays a list of install commands for different package managers.
Preview
Section titled “Preview”pnpm add -D starlight-theme-nova @astrojs/starlightnpm install -D starlight-theme-nova @astrojs/starlightyarn add -D starlight-theme-nova @astrojs/starlightbun add -D starlight-theme-nova @astrojs/starlightimport { CodePackageManagers } from 'starlight-theme-nova/components'
<CodePackageManagers
packages="starlight-theme-nova @astrojs/starlight"
dev={true}
/><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.