Caprice LogoCaprice UI
Installation

TanStack Start

Install and configure Caprice UI for TanStack Start.

Create project

Run the following command to create a new TanStack Start project with shadcn/ui:

npm create @tanstack/start@latest --tailwind --add-ons shadcn

Add Caprice UI Registry to your components.json

components.json
{
  "registries": {
    "@caprice": "https://caprice-ui.com/r/{name}.json"
  }
}

Add Components

You can now start adding components to your project.

npx shadcn@latest add @caprice/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/caprice-ui/button"

function App() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  )
}

Add all components at once

You can install all Caprice UI components at once with a single command:

npx shadcn@latest add @caprice/ui

The command above will add all caprice ui components to your project.