ui-thing icon indicating copy to clipboard operation
ui-thing copied to clipboard

Support for reka-ui

Open Xen0Xys opened this issue 9 months ago β€’ 9 comments

Hello, Does ui-things support shadcn 1.0 and new reka-ui (radix-vue 2.0) ? Thanks for your amazing job ! πŸ˜„

Xen0Xys avatar Feb 24 '25 13:02 Xen0Xys

Hey @Xen0Xys , I am not sure i understand what you mean by "support shadcn 1.0" I tried reka-ui and it is great so far. I plan on upgrading to reka-ui and tw4 in the coming months. since everything is so new right now, I am waiting to see how things progress.

I am not sure how the upgrade will go. I think I will have to create a different version of the ui-thing website and cli.

BayBreezy avatar Feb 24 '25 17:02 BayBreezy

Thanks for your answer! Nevermind I was thinking that ui-things was based on shadcn components πŸ˜… So, I will keep a look on how things will go!

Xen0Xys avatar Feb 24 '25 17:02 Xen0Xys

I mean, the components are similar. I just did not do the whole new-york style thing. I also added a few other components outside of what is documented in shadcn

BayBreezy avatar Feb 24 '25 17:02 BayBreezy

I did a global search for radix-vue and replaced it with reka-ui There are a few tweaks here and there, but its a pretty smooth transition. Along with replacing morev transitions with motion vue.

BlueBazze avatar Mar 06 '25 07:03 BlueBazze

Nice. I did test it out myself and it was great indeed. I did not make the change from morev to motion-v tho.

I also tried TW4 and a lot of stuff broke lolol the sidebar was hard to update but I got it working.

The biggest challenge for the tw4 & reka-ui upgrade is gonna be re-writing the CLI. I will make the jump when I have time to fix all the issues that will come up immediately after upgrading.

I was also considering just doing a v2 of the entire thing. That way, the ppl who can't upgrade just yet can still use the v1(this current version). Thoughts?

BayBreezy avatar Mar 06 '25 13:03 BayBreezy

I think that releasing a v2 could be great (it seems that shadcn-vue did that). Can't wait to see the release :)

Xen0Xys avatar Mar 06 '25 14:03 Xen0Xys

Yea.

Looking at what is over at shadcn-vue now, I am definitely gonna wait a bit. shadcn-vue will have to make another major change soon for TW4(I predict).

The move from the tw.config file to pure css is not a small one and a lot of the component classes will have to change.

BayBreezy avatar Mar 06 '25 14:03 BayBreezy

I can't wait to see the release, but yes take your time to make things right, it will be better for everyone.

Xen0Xys avatar Mar 06 '25 15:03 Xen0Xys

Biggest problem with tw4 is getting it to actually work. Tried it and messed up.

Have been eyeing unocss for a while, but now with tw4 i dont know anymore.

V2 seems fine.

BlueBazze avatar Mar 07 '25 22:03 BlueBazze

Hey all πŸ‘‹πŸ½,

I think it is time to start making the move to Reka UI + TW4. I know some things will have to change. Like upgrading to tw-animate-css and moving out the different transitions from morev to something like motion-vue.

I will also need to update the cli. I am thinking of doing a re-write. I want to make it closer to what is happening over at shadcn-vue. so maybe use that little json file to configure stuff.

Thoughts?

  • [x] Update to Reka UI
  • [x] Update to TW4
  • [x] Re-write CLI
  • [x] Update components to match new TW class syntax
  • [x] Remove toast in favor of sonner
  • [x] Use new-york theme. shadcn-ui and shadcn-vue is using it so why not πŸ€·πŸ½β€β™‚οΈ (This will be a big change. If anyone objects, please share why)

Did I miss anything?

BayBreezy avatar May 30 '25 22:05 BayBreezy

Hi. yet you haven't able to upgrade to Tailwind 4? I thank you a lot for the of ui-thing. But unfortunately there are a few days that I have been in trouble because of the TailWind project upgrade and I can't use your components.

alikavoosi1001 avatar May 31 '25 20:05 alikavoosi1001

Hey all πŸ‘‹πŸ½,

I think it is time to start making the move to Reka UI + TW4. I know some things will have to change. Like upgrading to tw-animate-css and moving out the different transitions from morev to something like motion-vue.

I will also need to update the cli. I am thinking of doing a re-write. I want to make it closer to what is happening over at shadcn-vue. so maybe use that little json file to configure stuff.

Thoughts?

  • [ ] Update to Reka UI[ ] Update to TW4[ ] Re-write CLI[ ] Update components to match new TW class syntax

Did I miss anything?

Hey, thanks for updates. Those seems enough to catch-up shadcn-vue.

and also;

  1. Deprecate toast for vueSonner like they did in original shadcn.
  2. OG shadcn has deprecated default theme with new york we can do same (I also think new-york suits well for shadcn :D)

arshx86 avatar Jun 01 '25 17:06 arshx86

Hi. yet you haven't able to upgrade to Tailwind 4? I thank you a lot for the of ui-thing. But unfortunately there are a few days that I have been in trouble because of the TailWind project upgrade and I can't use your components.

It's gonna be upgraded in the coming days πŸ™‚

BayBreezy avatar Jun 01 '25 18:06 BayBreezy

Hey all πŸ‘‹πŸ½, I think it is time to start making the move to Reka UI + TW4. I know some things will have to change. Like upgrading to tw-animate-css and moving out the different transitions from morev to something like motion-vue. I will also need to update the cli. I am thinking of doing a re-write. I want to make it closer to what is happening over at shadcn-vue. so maybe use that little json file to configure stuff. Thoughts?

  • [ ] Update to Reka UI[ ] Update to TW4[ ] Re-write CLI[ ] Update components to match new TW class syntax Did I miss anything?

Hey, thanks for updates. Those seems enough to catch-up shadcn-vue.

and also;

  1. Deprecate toast for vueSonner like they did in original shadcn.
  2. OG shadcn has deprecated default theme with new york we can do same (I also think new-york suits well for shadcn :D)

Thank you for sharing. I updated the list. The docs will be updated way before the CLI. That way ppl can copy and paste the components and have it working in their TW4 projects.

I wanted to stick with the tailwind module for nuxt but they are just implementing tw4 stuff and it is in beta at the moment.

I may have to exclude it from the CLI...

BayBreezy avatar Jun 01 '25 19:06 BayBreezy

The entire thing can more or less just be search and replace "radix-ui" -> "reka-ui" but there are some changes for props and changes in reka that is not immediately noticible.

tw4 isnt a hazard anymore, pretty straight forward. And wouldnt suprise me if theres an eslint plugin to find all the tw3->tw4 changes in the project. If you run into an issue where a component or multiple seems to have their tw classes but no actual css it is most likely because the tw vite plugin didnt recognise the source file so you'll have to mark it manuallly - https://tailwindcss.com/docs/functions-and-directives#source-directive Specifically layers in nuxt dont get recognised - @source "./layers/"; should fix it.

There are a few personal pit falls with reka. For instance the entire createContext thing is basically just a more cumbersome provide/inject for people who didnt bother reading the vue documentation. Which is the only problem i can think of at the moment, and is not really a problem.

The "hardest" issue you will face is tailwind and the deprecated utilities.

The biggest improvement i've found with Nuxt and shadcn is actually putting the Ui components in a Ui layer.

BlueBazze avatar Jun 02 '25 11:06 BlueBazze

@BlueBazze I wish it was that easy 🀣. The Radix -> Reka update is simple. Only a few components need an update. the tw3 -> tw4 update is painful!! Everything that could break, did break. I am going down the line of components and I am currently on the buttons page. As soon as a working version of the upgrade is available, I will publish it so everyone can take a look

BayBreezy avatar Jun 02 '25 12:06 BayBreezy

the tw3 -> tw4 update is painful!! Everything that could break, did break.

Hi. Great work. Your Blocks that you're giving away with an MIT license is saving me a lot of time!

I could not find the branch you are working on for the tw4 upgrade. If you share your progress on a dev branch, I can help look into it & with the tw4 upgrade.

amerkay avatar Jun 02 '25 16:06 amerkay

I think we should move forward instead of waiting for @nuxtjs/tailwindcss. Nuxt UI is already using Tailwind CSS v4, so hopefully the UI Thing work can continue as well.

donPuerto avatar Jun 08 '25 03:06 donPuerto

Hello All, If you get the chance, check out this branch here: https://github.com/BayBreezy/ui-thing/tree/feat/update-to-rika-ui-and-tw4

The docs will need some updating but all components are now up to par with TW4, Reka UI is being used & motion replace morev transitions. Lemmi know if you see any issues or just do the fix if you have the time. Thanks in advance πŸ™πŸ½

BayBreezy avatar Jul 15 '25 02:07 BayBreezy

And for those of us who are too lazy to pull down the code here: https://uithing.com

Please note: The Getting started section is completely out of sync. This part of the documentation will be recreated.

Also, the CLI has not been updated yet. I will update it soon. Nuxt 4 just got released yesterday. I am still not sure what is happening with the @nuxt/tailwind module but I had to drop it in order to get the update to work.

Please click around and let me know what breaks πŸ˜„

BayBreezy avatar Jul 16 '25 13:07 BayBreezy

More power brother

donPuerto avatar Jul 21 '25 04:07 donPuerto

Hello everyone,

The CLI is somewhat working with Nuxt 4. It will be a major release with breaking changes(there was no way around that part sadly)

It can be found on this branch(if anyone wants to test it out locally): https://github.com/BayBreezy/ui-thing-cli/tree/v1-update

There is one issue thus far with the Calendar and Datepicker components. They both rely on the nuxt module that lives here: https://github.com/samk-dev/nuxt-vcalendar

I already opened a PR for it to be fixed: https://github.com/samk-dev/nuxt-vcalendar/pull/25

Hopefully it gets merged soon. If not merged in a month, I will have to create my own version of the module.

BayBreezy avatar Aug 14 '25 06:08 BayBreezy

Hey everyone πŸ‘‹

Quick update: the calendar component issue has been fixed βœ….

Big shoutout to the community member who forked the library and patched the compatibility problem. I’ve merged their fix back in.

I think it’s safe to close this issue soon, maybe after a week of keeping an eye on it just in case. Thanks so much for your patience while this got sorted out, I really appreciate all of you checking out and using the library πŸ™.

A couple of other notes:

I added templates for bug reports and feature requests, so hopefully those make contributing smoother.

The changelog is still hilariously out of date πŸ˜‚ but I’ll catch it up as I go.

I’ve also started porting components from Magic UI into UI Thing β€” so keep an eye out for those!

Thanks again for being part of this little journey. πŸš€

BayBreezy avatar Aug 22 '25 22:08 BayBreezy

I'll be contributing some components in my free time, I love UiThing

therealokoro avatar Aug 31 '25 05:08 therealokoro