Installation
Set up Riff in a new or existing React 19 project.
Riff needs React 19 and a project the shadcn CLI can write into. The quickest route is to let the CLI scaffold the project for you, then add the components you want.
Create the project
Pick your framework. Each command creates the app, configures the @/* import alias and writes components.json. Follow the prompts; any base library works, since Riff brings its own primitives.
Next.js
Vite
TanStack Start
For React Router or Astro, use -t react-router or -t astro. Adding to an existing app instead? Run init without -t in its root.
Register the namespace
Add the @riff registry to the new components.json:
Add components
Install one or several at once. The CLI adds each component’s npm dependencies, such as UI SDK, the first time.
Then import them from your UI folder:
Each component imports its own stylesheet, so there is nothing to add to your global CSS. To match your brand, map the theme properties to your tokens.
Without the CLI
You don’t need shadcn at all. Copy a component’s two files from the Manual section of its page, or from the GitHub repository, into your project. Keep the .css file beside the .tsx, since the component imports it by relative path. If its Manual section lists a package to install, such as UI SDK, install that too.