jakala-na / next-contentful-starterkit

https://next-contentful-starterkit.vercel.app/
MIT License
2 stars 0 forks source link

Implement accordion component using radix UI #28

Open mrtag23 opened 7 months ago

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-contentful ✅ Ready (Inspect) Visit Preview 1 resolved Jun 14, 2024 11:06am
victorpavlov commented 7 months ago

@mrtag23 Could I ask you why you use the RadixUI component directly rather than just using https://ui.shadcn.com/docs/components/accordion? shadcn/ui uses Radix underneath, but in that case, we will have a fully controlled component?

mrtag23 commented 7 months ago

@mrtag23 Could I ask you why you use the RadixUI component directly rather than just using https://ui.shadcn.com/docs/components/accordion? shadcn/ui uses Radix underneath, but in that case, we will have a fully controlled component?

@victorpavlov the target was to benchmark how more efficient and simple we can implement a typical component, accordion in this scenario. I choose barebone radix ui + tailwind to see how far we can get using the most straight forward approach.