shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
70.94k stars 4.27k forks source link

Compatibility with Preact #125

Closed jackHedaya closed 2 months ago

jackHedaya commented 1 year ago

Hi!

Just wondering if anyone tried using the components with Preact. If not, I'd be happy to try it out and report back 🙂

Gravy59 commented 1 year ago

You need to understand that this isn't a new component library - it's a pre-styled solution originating from @radix-ui and @tailwindlabs. Tailwind is framework-agnostic, but I'm not sure if radix-ui is compatible with preact.

mst2k commented 1 year ago

Hey @jackHedaya, I'm curious to know if you've had a chance to try it out and could share your feedback?

celestin-dlh commented 11 months ago

Radix UI does not support preact, see this link

https://github.com/radix-ui/primitives/discussions/807#discussioncomment-3206140

javierhersan commented 5 months ago

Try Preact Aliasing.

Preact Aliasing is defined as:

Aliasing React to Preact: At some point, you'll probably want to make use of the vast React ecosystem. Libraries and Components originally written for React work seamlessly with our compatibility layer. To make use of it, we need to point all react and react-dom imports to Preact. This step is called aliasing.

You can find more information about Preact Aliasing in the Preact documentation

shadcn commented 2 months ago

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.