PackageInstall

Renders a package install command with a variant for each package manager.

Render a package install command with a variant for npm, pnpm, bun and yarn.

npm install renoun
pnpm add renoun
bun add renoun
yarn add renoun

Local Storage

The PackageInstall component uses local storage for the package manager preference and will use a small script hoisted to the root of the page to set the package manager on load. This is done to avoid any flashing from state changes when a local storage value is found.

API Reference