React Router

Install and configure Cubix for React Router (including Remix-style apps).

Choose the setup that matches your starting point.

Create project

Run init with the React Router template. Cubix scaffolds the app, installs dependencies, adds the @/* alias next to ~/*, then writes tokens and cubix.json.

pnpm dlx cubix-ui@latest init -t react-router

Follow the prompts for project name and options. Default base is Base UI. Pass --base aria or --base radix if your team standardizes on React Aria or Radix UI.

Add a component

Components are copied into your components/cubix folder as TypeScript source you own.

pnpm dlx cubix-ui@latest add button

Then import from your local path:

app/routes/home.tsx
import { Button } from "@/components/cubix/button"

export default function Home() {
  return (
    <div className="flex min-h-svh items-center justify-center">
      <Button>Get started</Button>
    </div>
  )
}

Next steps

Prefer a different host? See all options on the Installation page.