Skip to content

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
  1. Install and run
  2. When to use it
  3. For everyone

Install and run

pkg writes the install command, run the command to run a tool.

npm

npm install @sypnia/ui

npm

npx 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.
  1. Install and run
  2. When to use it
  3. For everyone

    Search pages, sections and terms