agmmnn / tauri-controls

🚥 Native-looking window controls for Tauri 2. React, Solid, Vue, Svelte+Tailwind.
https://npmjs.com/package/tauri-controls
MIT License
581 stars 21 forks source link

Add solid.js package #8

Closed ronanru closed 11 months ago

ronanru commented 11 months ago

Thank you for this amazing library. I wanted to use it for my app, but it uses solid.js.

In this PR I translated the react package to solid.js. (95% of code is the same as react, but with class instead of className) Also, tailwind-merge already has all features of clsx, so I just used twMerge instead of cn and removed the clsx dependency in this new package.

I'll be happy to translate any future changes in this library to solid.js.

agmmnn commented 11 months ago

That's huge, thank you. I'll check it out.

agmmnn commented 11 months ago

@tauri-controls/solid@0.1.0 🎉