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
Purchase Codervent UI Blocks to get access.
- 2
Sign in to your Codervent account and generate your Registry Token from the Dashboard.
- 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
Create
.env.localin your project root and add your token:TerminalCODERVENT_REGISTRY_TOKEN=cv_f2c9c91ca1771xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - 5
Make sure your project has
Radix UIinstalled. 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.csswith 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.csswith this file. - 6
Start adding blocks. Example:
Terminalnpx shadcn@latest add @codervent/basic-login
How to Install Sidebars
- 1
Run this command in your terminal. It installs all required sidebar files.
Terminalnpx shadcn@latest add @codervent/sidebar-01 - 2
Download
layout.tsxand 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
Download the theme provider and place it in your project root.
- 4
Download the hooks, extract the ZIP, and put the resulting
/hooksfolder in your project root.
You're ready to build. Browse the block library and install what you need.
Browse Blocks