When a link within an [up-nav]
element points to the current location, it is assigned the .up-current
class.
To set other classes on current links, configure up.feedback.config.currentClasses
.
This class is toggled automatically for any HTML that Unpoly renders.
To set that class on content that you manually inserted without Unpoly, use up.hello()
.
See [up-nav]
for more documentation and examples.