Registry
Install Modulo components with the shadcn CLI.
Install a component
bunx shadcn@latest add @modulo/interactive-artRequires an active Modulo key and a project configured for shadcn.
Registry setup
Set MODULO_REGISTRY_KEY to your key. Add this registry entry to components.json.
{
"registries": {
"@modulo": {
"url": "<registry-url>/r/{name}.json",
"headers": {
"Authorization": "Bearer ${MODULO_REGISTRY_KEY}"
}
}
}
}Shadcn copies the source files into your project. The garden requires React and Canvas 2D.
Use @modulo
Set MODULO_REGISTRY_KEY to your key. Add this registry entry to components.json.
{
"registries": {
"@modulo": {
"url": "<registry-url>/r/{name}.json",
"headers": {
"Authorization": "Bearer ${MODULO_REGISTRY_KEY}"
}
}
}
}bunx shadcn@latest add @modulo/interactive-artFor npm projects, use npx in place of bunx.