Documentation

Get started with Codervent UI Blocks

Install production-ready Codervent UI Blocks directly into your project using the shadcn CLI and Codervent Registry.

Getting Started

  1. 1

    Purchase Codervent UI Blocks to get access.

  2. 2

    Sign in to your Codervent account and generate your Registry Token from the Dashboard.

  3. 3

    Configure Codervent UI Blocks in components.json:

    Terminal
    {
      "registries": {
        "@codervent": {
          "url": "https://codervent.com/api/registry/{name}",
          "headers": {
            "Authorization": "Bearer ${CODERVENT_REGISTRY_TOKEN}"
          }
        }
      }
    }
  4. 4

    Create .env.local in your project root and add your token:

    Terminal
    CODERVENT_REGISTRY_TOKEN=cv_f2c9c91ca1771xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  5. 5

    Make sure your project has Radix UI installed. Codervent UI Blocks are built with shadcn/ui and Radix UI primitives, so the required Radix UI dependencies must be available in your project for the blocks to work correctly.

    Then replace your project's default globals.css with the Codervent version. It sets up the fonts, colors, and background tokens the blocks are built against. Without it, the blocks may not match the intended design.

    Replace app/globals.css with this file.

  6. 6

    Start adding blocks. Example:

    Terminal
    npx shadcn@latest add @codervent/basic-login

How to Install Sidebars

  1. 1

    Run this command in your terminal. It installs all required sidebar files.

    Terminal
    npx shadcn@latest add @codervent/sidebar-01
  2. 2

    Download layout.tsx and replace your default /app/layout.tsx. If you want it for a specific section only, use a route group instead, e.g. /app/(auth)/layout.tsx.

  3. 3

    Download the theme provider and place it in your project root.

  4. 4

    Download the hooks, extract the ZIP, and put the resulting /hooks folder in your project root.

You're ready to build. Browse the block library and install what you need.

Browse Blocks