Skip to content
项目

关于

动画化、可用于生产环境的 UI 组件,按照真实产品的需求打造。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
+2
7天
+15
15天
+23
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Componentry

Beautiful, interactive UI components you can copy and paste into your apps.

Crafted with React, Tailwind CSS, and Framer Motion. Open source. Free forever.

Documentation · Components · Report Bug · Request Feature

Vercel OSS Program

License Twitter


Introduction

Componentry is a collection of beautifully designed, interactive UI components built with React and Tailwind CSS. Just run the CLI command, add the component to your project, and start building.

Why Componentry?

  • Copy & Paste - Not a dependency. You own the code.
  • Interactive - Cursor-following effects, 3D transforms, and smooth animations.
  • Customizable - Built with Tailwind CSS. Easy to modify.
  • Accessible foundations - Native controls and component-specific keyboard and motion support. Validate accessibility in your application.
  • Dark Mode - All components support light and dark modes.
  • TypeScript - Fully typed for the best developer experience.

Quick Start

Installation via CLI

The fastest way to add components is using the shadcn CLI:

npx shadcn@latest add @componentry/magnetic-dock

Development

This project uses Turborepo for monorepo management.

Prerequisites

  • Node.js 20+
  • pnpm 10+

Setup

# Clone the repository
git clone https://github.com/harshjdhv/componentry.git
cd componentry

# Install dependencies
pnpm install

# Start development server
pnpm dev

Environment variables

All env vars live in a single root .env file (gitignored). apps/web/next.config.mjs loads it with Next's own env loader, so the web app picks up the same values automatically. No symlink or extra setup is needed.

After cloning, copy the template and fill in what you need:

cp .env.example .env

Nothing here is required to run the app: with no keys, everything degrades gracefully — analytics stays off, registry namespace falls back to @componentry, and the R2 upload scripts just tell you which var is missing.

Variable Used for
R2_* Cloudflare R2 uploads for component preview videos (scripts)
NEXT_PUBLIC_POSTHOG_* PostHog analytics
NEXT_PUBLIC_APP_URL Base URL of the registry
NEXT_PUBLIC_REGISTRY_NAMESPACE Namespace in install commands
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION Search Console meta tag
TURBO_TOKEN, TURBO_TEAM Turborepo remote cache

Project Structure

componentry/
├── apps/
│   └── web/                 # Documentation site (Next.js)
├── packages/
│   ├── ui/                  # Component library
│   ├── eslint-config/       # Shared ESLint configuration
│   └── typescript-config/   # Shared TypeScript configuration
└── turbo.json               # Turborepo configuration

Available Scripts

Command Description
pnpm dev Start development server
pnpm build Build all packages
pnpm lint Run linting
pnpm format Format code with Prettier
pnpm registry:generate Regenerate component and block payloads
pnpm registry:check Check registry freshness, dependencies and docs coverage
pnpm test Run distribution regression tests
pnpm typecheck Typecheck the web and UI workspaces
pnpm test:registry:install Install and typecheck representative payloads in a fresh app

Contributing

We welcome contributions! Whether it's:

  • Reporting a bug
  • Submitting a fix
  • Proposing new features
  • Creating new components

See the component creation guide for source, registry and documentation steps, and the maintenance guide for validation commands.

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-component)
  3. Commit your changes (git commit -m 'Add amazing component')
  4. Push to the branch (git push origin feature/amazing-component)
  5. Open a Pull Request

Component Guidelines

When creating new components:

  • Use TypeScript with proper type definitions
  • Support both light and dark modes
  • Include comprehensive props with sensible defaults
  • Add smooth transitions and animations
  • Write clear documentation with examples
  • Follow existing code style and patterns

Tech Stack

License

MIT License - feel free to use these components in personal and commercial projects.

Third-Party Licenses

Some components use third-party dependencies with separate license terms.

  • image-trail and layered-stack require gsap (GSAP).
  • If you use or redistribute those components, you are responsible for complying with GSAP's license terms.
  • GSAP license: https://gsap.com/licensing/

See LICENSE for more information.

Acknowledgments


Made with care by Harsh Jadhav

探索相关项目

加载中…