News for hackers. Stuff that matters.
Re:Precedent – Building Blocks for Next.js by ndstephens on Friday January 13, 2023 @07:34PM (#34375934)
Curious why you went with RadixUI over HeadlessUI? Not that you shouldn't, just wondering what your decision process was.

I also noticed in `_app.tsx` that you wrapped <Component /> in a <main> element. Wouldn't that wrap the entire app within main tags? I think that kind of throws off the normal flow of accessible landmarks.

I really like the template so far. Might add a few aspects of it to my own. Thanks for sharing

Re:Precedent – Building Blocks for Next.js by steventey on Friday January 13, 2023 @09:10PM (#34376653)
AFAIK Radix has better a11y support than HeadlessUI, which is why I went with that!

As for the second point – I'm actually not quite sure if there are any downsides/tradeoffs to that. What do you mean by accessible landmarks in this case? a11y?

Glad you like the template!