shadcn/ui for Preact.
An unofficial port of shadcn/ui to Preact and Tailwind CSS v4, with the same component API and Base UI primitives ported to Preact. Components are source files you copy into your app, customize, and own.
Browse componentsGet the components
bun add class-variance-authority cn lucide-preact @floating-ui/react-dom tw-animate-css shadcn
bunx degit https://github.com/LiasCode/shadcn-preact/registry/ui#main ./src/components/uiComposed components also use their upstream libraries: cmdk, react-day-picker, recharts, embla-carousel-react, input-otp, react-resizable-panels, and sonner. Install the ones you use and alias React to preact/compat.