can someone explain in layman terms what is headless UI?
React Aria: A headless UI component library
41–50 of 73 posts
Re: React Aria: A headless UI component library
#42It seems really useful. But the fact that this is useful feels like a code smell in the web platform. It would be cool to go back to HTML=schematics and CSS=styling. Maybe CSS needs to become more capable tool to place divs more easily?
What's the issue now then? Flexbox is straightforward enough.
Re: React Aria: A headless UI component library
#43Re: React Aria: A headless UI component library
#44I haven't gotten into react yet, but am looking at a new project where it might be useful. Out of curiosity, are there drop-in compatible replacements for the standard React libraries, like maybe Preact?
Re: React Aria: A headless UI component library
#45Earlier quoted context omitted.
In what way is Headless UI 'headless'?
It doesn't come with any styling OOTB. The idea is that you're just building a frontend (all the markup, styling etc) around some provided state management
Re: React Aria: A headless UI component library
#46I haven't gotten into react yet, but am looking at a new project where it might be useful. Out of curiosity, are there drop-in compatible replacements for the standard React libraries, like maybe Preact?
My advice - start with Next.js. Only got started with React myself a year ago (and love it) and to be gone it’s I though, I’ll just stick to nice simple react I bet I don’t need the other stuff. And then, I gradually realised why people use all this other stuff. Next.js solves so many problems!
I was looking at Alpine.js but it's pretty minimal, so I want something more full-featured to compare to. These headless UIs look useful, and some have React and Vue versions.
Re: React Aria: A headless UI component library
#47React Aria is a great project! We used it to meet WCAG 2.1 level AA requirements in our chat widget. It's even hard to assess how many days of work we have saved thanks to this solution. We've covered a bit of our experience in multiple posts, e.g. with handling keyboard navigation: https://developers.livechat.com/updates/livechat-accessibili... ).
It is however quite extensive as you can see by the role definitions:
https://www.w3.org/TR/wai-aria-1.1/img/rdf_model.png
Don't know if that is still best practice, screen readers probably are way smarter today.
Re: React Aria: A headless UI component library
#48Earlier quoted context omitted.
My advice - start with Next.js. Only got started with React myself a year ago (and love it) and to be gone it’s I though, I’ll just stick to nice simple react I bet I don’t need the other stuff. And then, I gradually realised why people use all this other stuff. Next.js solves so many problems!
Not interested in the server-side stuff as I don't use JS/Node on the backend. I see that Next.js is a Node framework, so unless there's a cut down client-side only version that's useful, not sure it'll fit the bill. I was looking at Alpine.js but it's pretty minimal, so I want something more full-featured to compare to. These headless UIs look useful, and some have React and Vue versions.
Re: React Aria: A headless UI component library
#49Earlier quoted context omitted.
My advice - start with Next.js. Only got started with React myself a year ago (and love it) and to be gone it’s I though, I’ll just stick to nice simple react I bet I don’t need the other stuff. And then, I gradually realised why people use all this other stuff. Next.js solves so many problems!
Not interested in the server-side stuff as I don't use JS/Node on the backend. I see that Next.js is a Node framework, so unless there's a cut down client-side only version that's useful, not sure it'll fit the bill. I was looking at Alpine.js but it's pretty minimal, so I want something more full-featured to compare to. These headless UIs look useful, and some have React and Vue versions.
The server-side mostly just takes place if you utilize the following: - Built-in API - Server-side Rendering
Re: React Aria: A headless UI component library
#50Earlier quoted context omitted.
It doesn't come with any styling OOTB. The idea is that you're just building a frontend (all the markup, styling etc) around some provided state management
`react-table` is headless. I am forced to create my own html structure and am in control of the markup from the start. `headless-ui` provides those components which doesn't give me full control over markup, does it?