Installation
Add components to your project in one command. Source files land in your codebase with no package lock-in.
Step 1: Set up shadcn
Initialize shadcn in your project. Skip this step if shadcn is already configured.
npx shadcn@latest initStep 2: Add a component
Select a component from the sidebar and run its install command. The CLI copies the source into components/ui/ and installs peer dependencies automatically.
npx shadcn add al-husayn/afro-ui/<slug>Package managers
The shadcn CLI supports npm, pnpm, yarn, and bun.
npx shadcn add al-husayn/afro-ui/scroll-progresspnpm dlx shadcn add al-husayn/afro-ui/scroll-progressyarn dlx shadcn add al-husayn/afro-ui/scroll-progressbunx --bun shadcn add al-husayn/afro-ui/scroll-progressAll components
Every component in the registry. Use the copy button to grab the install command.
npx shadcn add al-husayn/afro-ui/bounce-sidebarnpx shadcn add al-husayn/afro-ui/proximity-sidebarnpx shadcn add al-husayn/afro-ui/scroll-progressnpx shadcn add al-husayn/afro-ui/code-blocknpx shadcn add al-husayn/afro-ui/otp-inputnpx shadcn add al-husayn/afro-ui/text-scramblenpx shadcn add al-husayn/afro-ui/magnetic-docknpx shadcn add al-husayn/afro-ui/flickering-gridnpx shadcn add al-husayn/afro-ui/youtube-embed