All libraries
Aceternity UI logo

Aceternity UI

ui.aceternity.com

Trendy animated components and sections — hero effects, 3D cards, and scroll experiences for modern websites.

Animation & Motion
Stacks
ReactTailwind CSSTypeScript
Use cases
Landing PagesCreative & ExperimentalMarketing Sites

Installation

Initialize shadcn in the project
npx shadcn@latest init
Add a component by registry URL
npx shadcn@latest add https://ui.aceternity.com/registry/bento-grid.json
Add a component via the @aceternity alias
npx shadcn@latest add @aceternity/bento-grid
Install the motion peer dependency
npm install motion

Getting started

  1. Use a React or Next.js project with TypeScript and Tailwind CSS configured (npx create-next-app@latest if starting fresh).
  2. Run npx shadcn@latest init to create components.json and the cn utility.
  3. Add the registry to components.json: { "registries": { "@aceternity": "https://ui.aceternity.com/registry/{name}.json" } }.
  4. Install a component, for example npx shadcn@latest add @aceternity/bento-grid, or use the full URL https://ui.aceternity.com/registry/bento-grid.json.
  5. Install peers as needed (npm install motion; three and @react-three/fiber for 3D components), then import the component from your components directory and render it.

Agent setup prompt

Paste this into a coding agent to set Aceternity UI up in an existing project.

Add Aceternity UI (https://ui.aceternity.com) to this existing project.

Prerequisites: React or Next.js (Next.js 14+ recommended), TypeScript, Tailwind CSS v3 or v4 already configured. Components are distributed as source code through the shadcn registry, so there is no npm package to install; the code is copied into the project.

Steps:
1. Run "npx shadcn@latest init" if the project has no components.json yet.
2. Add this to components.json: { "registries": { "@aceternity": "https://ui.aceternity.com/registry/{name}.json" } }
3. Install one component to verify the flow: "npx shadcn@latest add @aceternity/bento-grid" (the full URL form "npx shadcn@latest add https://ui.aceternity.com/registry/bento-grid.json" also works).
4. Install peers: "npm install motion" for animated components. 3D components also need "three" and "@react-three/fiber".
5. Import the component from the components directory and render it in an existing page, adjusting classes to match this project's theme.

Check the official docs at https://ui.aceternity.com (CLI reference: https://ui.aceternity.com/components/cli) for per component options and extra dependencies before adding more components.