Docs

CLI Guide

Mridha UI works with the shadcn CLI via a custom registry endpoint. Each component exposes a /r/[slug].json route that the CLI reads.

Add a component

npx shadcn@latest add https://ui.mridha.net/r/animated-gradient-button

Or use the shorthand once the registry is published to the shadcn directory:

npx shadcn@latest add @mridha/animated-gradient-button

Configure your project registry

Add the Mridha UI registry to your components.json:

components.json
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "registries": [
    {
      "name": "mridha",
      "url": "https://ui.mridha.net/r"
    }
  ]
}

Registry index

Browse all available components via the registry index:

curl https://ui.mridha.net/r

Component JSON

Each component exposes its full metadata:

curl https://ui.mridha.net/r/animated-gradient-button.json