PackageManagerTabs ejectable
PackageManagerTabs displays commands for different package managers.
Basic usage
index.mdx
Set commands per package manager
You can pass an object to define the command for each package manager:
Add extra tabs
Use additionalTabs to add more package managers:
Props
Tip
- When
commandis a string, the component auto prefixes the correct package manager command and renders npm, yarn, pnpm, bun, and deno tabs by default. - For install commands, yarn, pnpm, bun, and deno tabs automatically replace
installwithadd. - In the deno tab, packages without an explicit source automatically get the
npm:prefix.