Loom UI
Frameworks

Next.js

Install and configure loom ui in your Next.js project

Create a new Next.js project

npx create-next-app@latest

You need to have tailwindcss installed in your project to use loom ui.

Initialize Loom UI

Use the init command to install the Loom ui components and configuration.

npx @venusai/loom-ui init

This will configure components.json and the file structure similar to the example given below below.

button.tsx
utils.ts
components.json

That's it!!

You can now use the Loom UI components in your project.

 npx @venusai/loom-ui add button

The command above will add the Button component to your project. You can then import it like this:

page.tsx
import { Button } from "@/components/loomui/button"; 
export default function Home() {
  return (
    <div>
      <Button>Click me</Button> {}
    </div>
  );
}

On this page