Using Pro blocks
Pro blocks are delivered through a private shadcn registry. Your license key authenticates each install, so the source still lands in your repo like any other block.
1. Get a license
Buy Pro or Team on the pricing page. Your license key arrives by email right after checkout.
2. Add the registry
components.json
{
"registries": {
"@sunui-pro": {
"url": "https://sunui.synvize.com/r/pro/{name}.json",
"headers": {
"Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
}
}
}
}3. Add your key
Put the key in .env.local. Keep it out of git; it is personal to your license.
$ SUNUI_LICENSE_KEY=your-license-key4. Install
$ npx shadcn@latest add @sunui-pro/flash-sale-heroTroubleshooting
- 401: the key is missing. Check that
SUNUI_LICENSE_KEYis set in the shell or.env.local. - 403: the key was revoked or is being shared too widely. Contact support.
- 429: too many installs in a short time. Wait a few minutes and retry.
On CI, add SUNUI_LICENSE_KEY as a secret. Every installed file has a header with your license ID, so please do not commit Pro source to public repositories.