ConfigsJul 19, 2026·2 min read

21st.dev — Component Marketplace for shadcn/ui-Based React Libraries

The largest registry of shadcn/ui-compatible React components, blocks, and hooks that developers can search, preview, and install directly into projects.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
21st.dev
Direct install command
npx -y tokrepo@latest install 49fbc6ed-836f-11f1-9bc6-00163e2b0d79 --target codex

Run after dry-run confirms the install plan.

Introduction

21st.dev is an open-source marketplace that aggregates shadcn/ui-compatible React components from community authors. It provides a searchable registry where developers discover, preview, and install Tailwind-styled components directly into their projects using the shadcn CLI.

What 21st.dev Does

  • Aggregates thousands of shadcn/ui-compatible components from community contributors
  • Provides live previews of each component with code inspection
  • Generates shadcn CLI-compatible install commands for one-line setup
  • Categorizes components by type: buttons, cards, forms, navigation, charts, and more
  • Supports component versioning and dependency resolution

Architecture Overview

The platform indexes component registries published by authors following the shadcn/ui component specification. Each component includes metadata, dependencies, and source code served through a compatible registry API. The frontend provides search, filtering, and interactive previews rendered in isolated sandboxes.

Setup & Configuration

  • No installation required for browsing; use the web interface to discover components
  • Install components via npx shadcn@latest add with the 21st.dev registry URL
  • Authors publish components by creating a registry following shadcn/ui conventions
  • Configure your project's components.json to accept third-party registries
  • Preview components in different themes (light/dark) before installing

Key Features

  • Largest open collection of shadcn/ui-compatible components and blocks
  • One-command installation that respects your project's Tailwind config
  • Interactive preview playground for testing component behavior
  • Author profiles with component collections and usage statistics
  • Hooks library alongside visual components for shared logic patterns

Comparison with Similar Tools

  • shadcn/ui — the official component set; 21st.dev extends it with community contributions
  • Aceternity UI — provides animated components; 21st.dev aggregates from multiple such libraries
  • Magic UI — single-author animated components; 21st.dev is a multi-author marketplace
  • npm — general package registry; 21st.dev is curated specifically for copy-paste UI components
  • Storybook — documents your own components; 21st.dev discovers external ones

FAQ

Q: Are components free to use? A: Yes. All components on 21st.dev are open source and free for commercial use.

Q: How do I publish my own components? A: Create a shadcn/ui-compatible registry repository and submit it for indexing on the platform.

Q: Do components work with other frameworks like Vue or Svelte? A: The marketplace focuses on React components; Vue and Svelte ecosystems have separate registries.

Q: How are component quality and security ensured? A: Components are community-reviewed, and the platform scans for known vulnerabilities in dependencies.

Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets