Create a Vite app with shadcn, then add OrganUI components to it.
Create the project
This creates a Vite app with Tailwind CSS and shadcn's
base-novastyle, built on Base UI. For Radix, useradix-novaand add the namespace in Radix projects.bunx shadcn@4.22.1 init -t vite --preset base-nova -n my-appFor an existing Vite app, run
bunx shadcn@4.22.1 init --preset base-novain its folder instead.Add components
From the project folder, add any component by name. Its OrganUI and shadcn dependencies install in the same run.
bunx shadcn@4.22.1 add @organui/heartUse them
Import the component from your components directory, here in
src/App.tsx:src/App.tsximport { Heart } from "@/components/heart" export default function App() { return ( <main className="mx-auto flex min-h-svh max-w-3xl flex-col gap-4 p-6"> <h1 className="text-2xl font-semibold">Heart</h1> <Heart /> </main> ) }Blocks
Vite has no file routing, so a block installs its components without its page:
bunx shadcn add @organui/explorer-01addscomponents/organ-explorer.tsx. Render it as the block's page does, such as<OrganExplorer model={heartModel} />.