Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Code Tabs

Tabbed code display for package manager install commands in React

Show install commands for npm, yarn, pnpm, and bun in switchable tabs. Pass your commands as an object and the component handles the rest—syntax highlighting, an animated tab indicator, and a copy button that copies whichever tab is active. Great for install guides or any code that has multiple versions.

Code Tabs preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.