Configs2026年7月19日·1 分钟阅读

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 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
21st.dev
直接安装命令
npx -y tokrepo@latest install 49fbc6ed-836f-11f1-9bc6-00163e2b0d79 --target codex

先 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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产