Example of Pear desktop app with Javascript + React + Tailwind + Shadcn/ui
npm i
npm run build
npm start
npm i
npm run dev
npx shadcn@latest add button
See more: https://ui.shadcn.com/docs/components/button
- open
node_modules/@radix-ui/react-slot/dist/index.mjs
- replace
import * as React from "react"
withimport React from "react"
- run
npx patch-package @radix-ui/react-slot
- add
npx patch-package
as a postinstall script inpackage.json