DocsPackages
Packages
Packages used by components and blocks, with install commands.
Overview
Components and blocks pull in these packages when an item needs them. Pick a package manager and copy the install command for that package.
The component or block page lists the exact set for that item. Registry setup is in Installation.
Animation
Motion, timelines, and smooth scrolling. The motion package is imported from motion/react.
| Package | Use it for | Install |
|---|---|---|
motion | Animation for components and blocks. | npm install motion |
gsap | Timelines, SVG morphs, and scroll-linked motion. | npm install gsap |
lenis | Smooth scrolling. | npm install lenis |
@number-flow/react | Animated number transitions. | npm install @number-flow/react |
framer-motion | Animation package installed by Encrypt Button. | npm install framer-motion |
WebGL
Three.js and the React bindings used by backgrounds, shaders, and 3D scenes.
| Package | Use it for | Install |
|---|---|---|
three | WebGL scenes and shaders. | npm install three |
@react-three/fiber | React renderer for Three.js. | npm install @react-three/fiber |
@react-three/drei | Helpers for React Three Fiber scenes. | npm install @react-three/drei |
threejs-components | WebGL effects for Neon Tubes. | npm install threejs-components |
@types/three | TypeScript types for three. | npm install -D @types/three |
Physics
The 2D physics stack used by Gravity Pills.
| Package | Use it for | Install |
|---|---|---|
matter-js | 2D physics. | npm install matter-js |
poly-decomp | Convex decomposition used with Matter.js. | npm install poly-decomp |
svg-path-commander | SVG path data for physics shapes. | npm install svg-path-commander |
@types/matter-js | TypeScript types for matter-js. | npm install -D @types/matter-js |
Interface
Primitives, carousels, themes, and embeds that some items install.
| Package | Use it for | Install |
|---|---|---|
@base-ui/react | Unstyled UI primitives. | npm install @base-ui/react |
@radix-ui/react-accordion | Accordion primitives. | npm install @radix-ui/react-accordion |
embla-carousel-react | Carousel for React. | npm install embla-carousel-react |
embla-carousel | Carousel core used with the React package. | npm install embla-carousel |
next-themes | Light and dark theme state. | npm install next-themes |
qr-code-styling | Styled QR codes. | npm install qr-code-styling |
@calcom/embed-react | Cal.com embed. | npm install @calcom/embed-react |
planet-avatar | Generated avatars. | npm install planet-avatar |
Icons
Icon sets. Install the set named on the item you are adding.
| Package | Use it for | Install |
|---|---|---|
lucide-react | Icons. | npm install lucide-react |
@tabler/icons-react | Icons. | npm install @tabler/icons-react |
@phosphor-icons/react | Icons. | npm install @phosphor-icons/react |
react-icons | Icons. | npm install react-icons |
Classnames
Class name helpers. A shadcn project already includes clsx and tailwind-merge in lib/utils.
| Package | Use it for | Install |
|---|---|---|
clsx | Builds class name strings. | npm install clsx |
tailwind-merge | Merges Tailwind classes. | npm install tailwind-merge |
class-variance-authority | Variant class names. | npm install class-variance-authority |