Installation
Add Pasta UI Pro components directly to your React project. The source is yours to customize.
1Set up your project
Start with a React project using Tailwind CSS. If you have not configured shadcn yet, initialize it in your project directory.
pnpm dlx shadcn@latest initnpx shadcn@latest inityarn dlx shadcn@latest initbunx --bun shadcn@latest init2Create a registry token
Pro components are served from a private registry. Create your personal token on your account page and add it to .env.local. Never commit it.
PASTAUI_PRO_TOKEN=pastaui_pro_xxxxxxxxxxxx
3Add the registry
Register the @pastaui-pro namespace in components.json. The shadcn CLI reads the token from your environment and sends it with every request.
{
"registries": {
"@pastaui-pro": {
"url": "https://pro.pastaui.com/r/{name}.json",
"headers": {
"Authorization": "Bearer ${PASTAUI_PRO_TOKEN}"
}
}
}
}
4Add a component
Copy the installation command from a component page. For example, add the hero section:
pnpm dlx shadcn@latest add @pastaui-pro/hero-section-01npx shadcn@latest add @pastaui-pro/hero-section-01yarn dlx shadcn@latest add @pastaui-pro/hero-section-01bunx --bun shadcn@latest add @pastaui-pro/hero-section-015Make it yours
Import the installed component and adapt the structure, copy, and tokens to your own product.
Browse components