I'm using tailwind and would like to make a menu where the active item has some classes like active:bg-gray-200 or something like that but how can I set that item to be active?
I would need to set inertia-link as active, if not I could make a method and set a class like this :class="[is_active(item.url) ? 'bg-gray-200' : '']" but I was wondering if I could set the element instead. Since I'm using inertia I can use the current url like $page.url along with the item.url to check if they're the same.