
React Aria Components
Frontend First
00:00
How to Build a Toggle Like a Switch in Your App
The headless UI libraries have basically made something like a switch component available to you. It has the same semantics as a checkbox which adds aria roles to the markup. React aria is a library that's not quite a headless UI library, but it gives you hooks that are lower level than a higher level switch component. But react aria is incredibly comprehensive and they have thought about basically everything you can think about.
Transcript
Play full episode