nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.56k stars 419 forks source link

Using TanStack Table as a headless table #653

Open AbdallahAlhaddad opened 9 months ago

AbdallahAlhaddad commented 9 months ago

What do you think about using TanStack headless table to handle table logic?

benjamincanac commented 9 months ago

What would be the benefit of using TanStack, what are we missing?

ddahan commented 9 months ago

Based on the features, I guess the OP idea is to be feature-complete without reimplementing them?

AbdallahAlhaddad commented 9 months ago

The main idea is to eliminate the need to maintain the Javascript logic ourselves and rethinking the table api to give the ability to easily extend the table functionality by the library consumers.

I suggested TanStack Table because its popular and well-maintained headless table library as its very popular with the react ecosystem, I also noticed it is used in shadcn ui.

ddahan commented 9 months ago

That's a very interesting topic in my opinion an I'm curious to hear maintainers opinion. I guess it's a little tough for them to decide when something :

Because iit's all about trade-offs. The more you integrate things by yourself, the more it requires work and maintenance. However the code is probably mode robust, easier to use and debug for developers, and dedicated to your specific need.

benjamincanac commented 3 months ago

I'm gonna give this a shot in v3 but I don't guarantee that I will go for it 😊