Getting started
Introduction
Aceternal Components are React components with motion. They aren't a package you depend on: the shadcn CLI copies each one into your project, and from then on it's your code.
What this is
- One file per component. React only: no Tailwind, CSS file or animation library required.
- Built for real sites. Each one comes from the Aceternal project, then gets props for the common changes.
- Careful motion. Smooth at 60fps, and instant for visitors who prefer reduced motion.
About shadcn
Installing uses the shadcn CLI, the open-source tool from shadcn/ui. This site is a shadcn registry: it publishes each component in the format the CLI reads, so shadcn add can fetch it and copy it into your project.
- You don't need shadcn/ui's components. Only the CLI is used, and our components don't import anything from shadcn/ui.
- Tailwind isn't required either. The CLI asks about it during
init, but these components style themselves. - Not affiliated. Aceternal Components is an independent project and isn't made or endorsed by shadcn.
One-time setup
You need a React project (Next.js or Vite) with a components.json, which tells the CLI where components go. If you've used shadcn/ui before, you already have one. If not, run this once in your project:
npx shadcn@latest initInstalling a component
Every component page has its own command. It downloads the component from this site and writes it to your components folder:
npx shadcn@latest add https://components.aceternal.in/r/<name>.jsonPrefer not to use the CLI? Each page also has the full source to copy by hand.
All components
License
Free under the MIT licence, for personal and commercial work. Credit is welcome, never required.