Sulaf components are distributed as raw source code that you add directly to your project. This gives you full control and ownership over the implementation.
Prerequisites
Before adding Sulaf components, you need an existing project with:
- Vue 3.4+
- Tailwind CSS
- shadcn-vue
If you haven't set up shadcn-vue yet, follow their installation guide. Your project must have a valid components.json file.
Choose your installation method
You can add components using the Sulaf CLI (the fastest method) or by leveraging the standard shadcn-vue CLI.
Method 1: Using Sulaf CLI (Recommended)
The dedicated sulaf acts as a seamless wrapper, letting you add components with zero extra configuration.
pnpm dlx sulaf@latest <component-name>
For example, to add the autocomplete component:
pnpm dlx sulaf@latest autocomplete
You can install all components at once with:
pnpm dlx sulaf@latest all
Method 2: Registry Setup (usnig shadcn-vue CLI directly)
If you prefer using the standard shadcn-vue CLI, you can register Sulaf as a recognized component source within your project.
- Open your
components.jsonfile. - Add
@sulafto theregistriesobject:
{
"aliases": { ... },
"registries": {
"@sulaf": "https://sulaf-socd8d.cranl.net/r/components/{name}.json"
}
}- Add components using the shorthand prefix:
pnpm dlx shadcn-vue@latest add @sulaf/autocomplete
Method 3: Direct URL (shadcn-vue CLI)
If you don't want to modify your components.json registry, you can pass the direct URL to the shadcn-vue CLI:
pnpm dlx shadcn-vue@latest add https://sulaf-socd8d.cranl.net/r/components/autocomplete.json
Method 4: Manual installation
You can also copy component source code directly from our documentation pages into your project. Each page includes the required snippets, dependency list, and usage examples.
Next Steps
Start Browsing Components to see what's available.
Last updated on April 14, 2026