Component packs › Mono › Package-manager Tabs
Switch from npm to pnpm and shared words slide to their new place while the ones that differ roll out and in; every tab set on the page follows.
Package-manager Tabs is an install tabs from Mono, a component pack with 6 code components: Code UI where changes move: diffs slide lines in and out, and the terminal runs its script. Price: $2 for the whole pack.
Built with: word-level morph, shared choice, copy.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
pkg | string | "motion" | Packages to install. Default "motion". |
dev | boolean | Install as a dev dependency. | |
value | PackageManager | ||
sync | boolean | true | Remember the choice and share it with every tab set on the page. Default true. |
label | string | ||
dark | boolean | ||
onChange | (pm: PackageManager) => void | ||
autoplay | number | false | Showcase mode: moves to the next manager every N ms while visible. |
readonly value: PackageManagerset(pm: PackageManager): voiddestroy(): voidimport PmTabs from './PmTabs';
<PmTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Code blocks.