Install Watermelon UI with the CLI

Every Watermelon UI component, block, and dashboard installs with the shadcn CLI in one command: npx shadcn@latest add https://registry.watermelon.sh/r/<name>.json. The CLI copies the source into your project and installs its dependencies, so the code is yours to edit.

1. Set up shadcn in your project

If your React project does not use shadcn yet, run npx shadcn@latest init once. It sets up Tailwind CSS variables, the cn helper, and a components.json file that tells the CLI where to put files. See installation for Next.js and Vite.

2. Add a component

Copy the install command from any component page, or build it from the component name:

npx shadcn@latest add https://registry.watermelon.sh/r/card-split-accordian.json

The files land in your components folder, and any npm packages the component needs are installed for you.

Theme-token variants

Many animated components also ship a base variant that uses your theme tokens instead of fixed colors. Add -base to the name: https://registry.watermelon.sh/r/card-split-accordian-base.json.

What you can install

TypeExample nameBrowse
Componentsaccordion-1Components
Animated componentscard-split-accordianAnimated components
Blockshero-3Blocks
Dashboardsagndex-dashboardDashboards

Let your AI agent install for you

Connect the free Watermelon MCP server to Claude Code, Cursor, or Codex, and the agent can search the catalog and run these install commands itself.

Frequently asked questions

Do I need shadcn/ui to use Watermelon components?

You need the shadcn CLI and a components.json file, which npx shadcn@latest init creates. You do not need to install any shadcn components first.

What if a component file already exists?

The shadcn CLI asks before overwriting. Pass --overwrite to replace files without asking.

Related

Open-source UI platform for developers

Watermelon UI is an open-source platform for browsing React components, animated interactions, dashboards, templates, and reusable page sections. The project is built for the community and helps developers move from inspiration to implementation faster by pairing visual previews with source-backed examples and documentation. The platform also includes full templates so people can see how individual blocks work together as realistic product pages instead of only as isolated snippets.

Important public pages include the main docs home, animated components, blocks, dashboards, templates, developer docs, about, contact, privacy, terms, copyright, llms.txt, and the sitemap. The repositories under WatermelonCorp are the source of truth for contributions, and the platform repository includes local MCP tooling for structured agent access to the catalog.