TanStack Start
Install and configure Cubix for TanStack Start.
Choose the setup that matches your starting point.
Create project
Run init with the TanStack Start template. Cubix scaffolds the app with the TanStack CLI, then writes tokens, lib/utils.ts, and cubix.json.
pnpm dlx cubix-ui@latest init -t startFollow 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 buttonThen import from your local path:
import { Button } from "@/components/cubix/button"
import { createFileRoute } from "@tanstack/react-router"
export const Route = createFileRoute("/")({
component: Home,
})
function Home() {
return (
<div className="flex min-h-svh items-center justify-center">
<Button>Get started</Button>
</div>
)
}Next steps
Components
Browse the catalog and add what you need.
Theming
Restyle tokens after init.
CLI
Full reference for init, add, view, and build.
Prefer a different host? See all options on the Installation page.