Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 19, 2026·2 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
21st.dev
Commande d'installation directe
npx -y tokrepo@latest install 49fbc6ed-836f-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires