ui icon indicating copy to clipboard operation
ui copied to clipboard

Compatibility with Preact

Open jackHedaya opened this issue 1 year ago • 4 comments

Hi!

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

jackHedaya avatar Mar 14 '23 18:03 jackHedaya

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.

Gravy59 avatar Apr 28 '23 03:04 Gravy59

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

mst2k avatar Oct 05 '23 08:10 mst2k

Radix UI does not support preact, see this link

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

celestin-dlh avatar Oct 26 '23 16:10 celestin-dlh

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

javierhersan avatar Apr 28 '24 08:04 javierhersan