pub fn active_class(class: impl AttrText) -> AttrExpand description
Mark a link as the current page: when the URL path equals the link’s path,
the link gets this class and aria-current="page". Applied by the server
when rendering and kept up to date by the client runtime after every
navigation, so it also works in layouts that stay on screen.
a![href("/docs"), active_class("active"), "Docs"]