Component packs › Mono › Package-manager Tabs

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.

Package-manager Tabs props

PropTypeDefaultDescription
pkgstring"motion"Packages to install. Default "motion".
devbooleanInstall as a dev dependency.
valuePackageManager
syncbooleantrueRemember the choice and share it with every tab set on the page. Default true.
labelstring
darkboolean
onChange(pm: PackageManager) => void
autoplaynumber | falseShowcase mode: moves to the next manager every N ms while visible.

Methods on the ref

Use it in React

import PmTabs from './PmTabs';

<PmTabs />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Mono

Good for: Code blocks.