reach / router

https://reach.tech/router
MIT License
6.9k stars 326 forks source link

Ability to replace div with `tabindex="-1"` for nested routes #499

Closed michael-vasyliv closed 1 year ago

michael-vasyliv commented 2 years ago

Have a question?

Question about nested routes, how to replace <div tabindex="-1" role="group" style="outline: none;"> with custom component with styles for nested routes (we have this logic for routes, but how about nested components)?

here is example https://codesandbox.io/s/reach-router-starter-v1-forked-w7eyj?file=/src/index.js Screenshot from 2022-01-27 17-17-20

as you can see on Router we have class avadakedavra, I want do the same for <Home path="/"> I want to see class avadakedavra on the element (sub route of home) that has this <div tabindex="-1" role="group" style="outline: none;">

michael-vasyliv commented 1 year ago

no need anymore