Code Package Managers
Displays a list of install commands for different package managers.
Preview
pnpm add -D starlight-theme-nova @astrojs/starlight
npm install -D starlight-theme-nova @astrojs/starlight
yarn add -D starlight-theme-nova @astrojs/starlight
bun add -D starlight-theme-nova @astrojs/starlight
Usage
import { CodePackageManagers } from 'starlight-theme-nova/components'
<CodePackageManagers
packages="starlight-theme-nova @astrojs/starlight"
dev={true}
/>
<CodePackageManagers>
Props
The <CodePackageManagers>
component accepts the following props:
packageManagers
type: PackageManager[]
default: ['pnpm', 'npm', 'yarn', 'bun']
The package managers to use.
packages
type: string
The packages to install. If you want to install multiple packages, you can pass a space-separated string.
dev
type: boolean
default: false
Whether to install the packages as dev dependencies.