Monocharts README

The project's README from github.com/Subhan-code/Monocharts. As one markdown file: README.md.

@subhanhq/amicro

A curated collection of premium React micro-interactions, transition components, and card layouts powered by Motion.

npm version License GitHub Stars Sponsor


╭──────────────────────── Amicro CLI ────────────────────────╮
│ npx @subhanhq/amicro@latest init     initialize project    │
│ npx @subhanhq/amicro@latest add      add UI components     │
╰────────────────────────────────────────────────────────────╯

⚡️ Quick Start

Installation

npm install @subhanhq/amicro
# or
yarn add @subhanhq/amicro
# or
pnpm add @subhanhq/amicro

CLI Command Usage

# 1. Initialize configuration in your React / Next.js / Vite project
npx @subhanhq/amicro@latest init

# 2. Add individual components directly to your codebase
npx @subhanhq/amicro@latest add download-button

# 3. Add card interaction components
npx @subhanhq/amicro@latest add card-arc-5

🎨 shadcn/ui Registry Integration

You can add Amicro motion primitives, custom hooks, and spring presets directly to your project using the shadcn CLI!

1. Direct URL Installation

You can install any component directly by referencing its public raw URL:

npx shadcn add https://raw.githubusercontent.com/Subhan-code/Amicro--Micro-transitions-/main/registry/ui/fade-in.json

Add the @amicro namespace to the registries field in your project's components.json:

{
  "registries": {
    "@amicro": "https://raw.githubusercontent.com/Subhan-code/Amicro--Micro-transitions-/main/registry/{name}.json"
  }
}

Now, you can install any component, hook, or utility directly by name:

# Install entrance transition components (placed under components/amicro/)
npx shadcn add @amicro/fade-in
npx shadcn add @amicro/fade-up
npx shadcn add @amicro/zoom-in

# Install hover & text components
npx shadcn add @amicro/tilt-card
npx shadcn add @amicro/magnetic-button
npx shadcn add @amicro/text-reveal

# Install hooks & utilities
npx shadcn add @amicro/use-scroll-progress
npx shadcn add @amicro/presets

💻 Card Components & CLI Commands

Component Description CLI Command
ARC (5 Cards) Fanned card layout forming a neat curved arc with 5 items npx @subhanhq/amicro@latest add card-arc-5
ARC (7 Cards) Expanded card arc layout accommodating 7 items cleanly npx @subhanhq/amicro@latest add card-arc-7
Long ARC (5 Cards) Wide, sweeping card arc extending translations laterally npx @subhanhq/amicro@latest add card-long-arc-5
Linear Spread Slides cards horizontally in a linear row without rotations npx @subhanhq/amicro@latest add card-linear-spread
Corner Fan Fans elements radially from a fixed bottom-left origin anchor npx @subhanhq/amicro@latest add card-corner-fan
Stamp Arc Perforated stamp cards with dynamic arc, gap, and offset controls npx @subhanhq/amicro@latest add card-stamp-arc
Cascade Stagger Deploys cards vertically and staggered in a diagonal cascade npx @subhanhq/amicro@latest add card-cascade-stagger
Scatter Desk Deal Scatters cards into an overlapping dealt hand layout on hover npx @subhanhq/amicro@latest add card-scatter-spread
Wheel Radial Fan Fans cards outward in a radial semi-circle around center anchor npx @subhanhq/amicro@latest add card-wheel-fan
Interactive Carousel An interactive arc-based 3D motion carousel featuring smooth dot indicators and dynamic prev/next controls, inspired by vivi npx @subhanhq/amicro@latest add card-carousel
CoverFlow Carousel Premium 3D CoverFlow carousel displaying cards along perspective path npx @subhanhq/amicro@latest add card-cover-flow
Time Machine Stack Apple-style perspective depth card stack with timeline scrubber npx @subhanhq/amicro@latest add card-time-machine

✨ Key Features


🛠️ Prerequisites & Requirements


👤 Author & Support

Created with ❤️ by Syed Subhan


RepoStars

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Monocharts (Subhan-code/Monocharts)

Searching Database…

这是什么?它是一套精选的高级 React 微交互组件、过渡效果和动画卡片布局合集(名为 @subhanhq/amicro),构建在 Motion 动画库之上。
这是我要导入的 npm 包,还是别的东西?它是一个“复制代码”式的组件注册表,类似 shadcn/ui:你安装一个 CLI 命令,它会把组件的原始 TSX 源码复制到你自己的项目中,而不是添加运行时依赖。
怎么把组件添加到我的项目里?运行类似 `npx @subhanhq/amicro@latest add card-arc-5` 的 CLI 命令,或者在项目的 components.json 中添加 @amicro 命名空间来配置命名空间注册表映射,之后就能按名称安装。
项目里要先准备好什么才能用这些组件?Node.js 18 或更高版本、React 18 或 19、Tailwind CSS v3 或 v4,以及 motion 或 framer-motion 包(二选一)。
如果我没用 Tailwind 或 Motion,它还能用吗?不能。这些组件假定你的项目已经配置好 Tailwind CSS 和 Motion 动画库,因为它们被列为硬性前提。
这是专门给 Web 应用用的吗?是的。它是一个面向网页前端的 React UI 组件库,不适用于原生移动或桌面应用。
它包含哪类组件?主要是卡片布局(弧形扇列、级联、轮播、时光机堆叠)和微过渡效果,比如 5 卡弧形、CoverFlow 轮播和苹果风格的透视卡片堆叠。
为什么用复制代码而不是常规的 npm 导入?把 TSX 源码直接复制进代码库可以避免添加运行时依赖,并让你在安装后能完全掌控、自由定制组件。
它支持深色模式吗?支持。组件从设计之初就同时考虑了深色和浅色两套 UI 配色。
不用 CLI 能安装单个组件吗?可以。你也可以不用 npx CLI 命令,直接通过引用组件的公开原始 URL 来安装任意组件。
Size
1.5 MB
Stars
189
Updated
CommitAug 15
Age
2mo
Commits · 90 Days