aceternity-ui
Version:
Add Aceternity UI components to your apps.
60 lines (38 loc) • 1.11 kB
Markdown
# Aceternity UI
Add [Aceternity UI](https://ui.aceternity.com) components to your projects.
## Usage
```bash
npx aceternity-ui init
```
`init` command initializes a `components.json` file and a `tailwind.config.js` file for a new project.
It installs `framer-motion`, `cn` and other dependencies, compatible with shadcnui.
### shadcn-ui project
If your project is already using the `shadcn-ui`, you can still use aceternity-ui.
```bash
npx shadcn-ui init
```
## add
```bash
npx aceternity-ui add [component]
```
Adds a new component to your project.
### Example
```bash
npx aceternity-ui add bento-grid
```
You can also use the optional `--all` flag to install all components:
```bash
npx aceternity-ui add --all
```
You can install the related demos / examples for the related components by using the `-e` flag with the `add` command
```bash
npx aceternity-ui add [component] -e
```
### Example
```bash
npx aceternity-ui add bento-grid -e
```
To check all the available components / blocks and aliases, you can use the `add` without supplying anything extra:
```bash
npx aceternity-ui add
```