110k

Remix

Install and configure shadcn/ui for Remix.

Create project

Start by creating a new Remix project using create-remix:

pnpm dlx create-remix@latest my-app

Run the CLI

Run the shadcn init command to set up your project:

pnpm dlx shadcn@latest init

That's it

You can now start adding components to your project.

pnpm dlx shadcn@latest add button

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

app/routes/index.tsx
import { Button } from "~/components/ui/button"
 
export default function Home() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  )
}