Getting started

CLI

Add Amines UI components to your project from the terminal, then use and customize them in your app.

On This Page

Before you start

Have a React project ready and open a terminal at its root, where its package.json lives. The command works with npm, pnpm, yarn, and bun. Amines UI components use Tailwind CSS, so make sure Tailwind is configured in your project.

Run the CLI

Run the command for your package manager from the project root. It downloads the latest Amines UI CLI for this run, so you do not need a global install.

npx amines-ui@latest

The command starts the Amines UI CLI. Follow the prompts to choose what you want to add and complete the setup for your project. You can run the command again whenever you want to add another item.

Add a component

Choose a component or block in the CLI and continue through its prompts. When it finishes, check the terminal output for the files it added and any dependencies or setup steps it lists. The component source lives in your project, ready for you to edit.

Use the component

Import the component from the path where it was added, then render it in a page or another component. For example, after adding Button:

app/page.jsx

import Button from "@/components/ui/Button";

export default function Page() {
  return (
    <main className="grid min-h-screen place-items-center p-8">
      <Button variant="outline">Explore components</Button>
    </main>
  );
}

Check the component page for its available props and examples. You can edit the component source and, when it supports a className prop, pass your own classes to fit your app.

Dependencies and setup

Requirements can vary by component. Use the CLI output as the source of truth for any packages or configuration it asks you to add. If an installed component uses Motion, its interactive code must run in a client component in the Next.js App Router.

Install by hand

Prefer to add a component without the Amines UI CLI? Use the shadcn add command with its registry URL. The installation guide walks through the project setup and Button example.