How to have active Anchor for "sibling" URL?
when url is
/abc/def/1
, the anchor has active link class, but not on /abc/def/<N>
how can this be achieved?
Using FileRoutes:
/abc/[def]/[N].tsx
5 Replies
What about
}
Good morning,
That didn't work either
I also attempted to apply your suggestion in the
class
property, but still no luck:
I've confirmed that params.chapter
is not undefinedAre you using tailwindcss?
Then you have to take a different approach.
Am afk. But there are helper functions you need to wrap the class attribute in. Tailwind does not work with class list or active class.
Can you provide a reproduction on stackblitz?
https://start.solidjs.com
SolidStart
SolidStart: Fine-Grained Reactivity goes fullstack
SolidStart is a JavaScript Framework designed to build SolidJS apps and deploy them to a variety of providers.
I apologize for late reply
After looking at the stackblitz example, I decided to test regex against pathname:
which seems to be working now 😄
thank you :prayge: