ui icon indicating copy to clipboard operation
ui copied to clipboard

[discussion] radix-ui added tailwindcss for all primitive examples, now what?

Open mkandan opened this issue 2 years ago • 2 comments

radix-ui announced about a month ago they had added TailwindCSS support for all their primitives' examples on Twitter. Checked it out, and yep it's true and works well.

Wondering how this stacks up against just using this project. Any advice? I know picking "one over the other" isn't really encompassing in this case, since this repo is built around radix-ui's primitives...

mkandan avatar Mar 28 '23 01:03 mkandan

I see this project more like an extension on radix-ui with the examples from the docs you can easily create re-usable components with variants using CVA and tailwind-merge.

This way when you use your pre-defined components you have a clean usage in your views and you'll still be able to extend/override it with tailwind.

florisbosch avatar Mar 29 '23 07:03 florisbosch

What @florisbosch said.

  • The Radix UI examples are docs for how to use Tailwind with the components.
  • This repo is an implementation of that.

shadcn avatar Apr 11 '23 05:04 shadcn

@mkandan I'm going to close this issue. Feel free to reopen if you have any other question. Thank you.

shadcn avatar Apr 20 '23 12:04 shadcn