If you haven't already, initialize shadcn in your project:
npx shadcn@latest initAdd the Saturation registry to your components.json:
{
"registries": {
"@saturation": "https://ui.saturation.io/r"
}
}npx shadcn@latest add @saturation/buttonThis will install the component, its dependencies, and any required registry dependencies automatically.
If you prefer to install components manually:
registry/saturation/ui/components/ui/ directorylib/utils.ts exports the cn() functionSaturation UI components use the @/ path alias. Ensure your tsconfig.json has:
{
"compilerOptions": {
"paths": {
"@/*": ["./*"]
}
}
}