PackageTabs
One install command for npm, pnpm, yarn and bun. Choose yours once and every page shows it.
import PackageTabs from '@sypnia/ui/astro/PackageTabs.astro'
On this page
Install and run
pkg writes the install command, run the command to run a tool.
npm
npm install @sypnia/ui pnpm
pnpm add @sypnia/ui yarn
yarn add @sypnia/ui bun
bun add @sypnia/ui npm
npx sypnia login pnpm
pnpm exec sypnia login yarn
yarn sypnia login bun
bunx sypnia login Code
---
// Choose pnpm here, and every other set of package tabs on the page (and on the next pages) follows.
import PackageTabs from '@sypnia/ui/astro/PackageTabs.astro';
---
<div class="sy-stack" style="--gap:var(--s-3)">
<PackageTabs pkg="@sypnia/ui" />
<PackageTabs run="sypnia login" />
</div> When to use it
Use it when
- Every install or run command on a JavaScript docs site.
Do not use it when
- Commands that are not about a package manager: that is Cli.
For everyone
- The same as CodeTabs: arrow keys between tabs, every command copyable.