Skip to content

Add Boolean parameter to attrs scope of NavLink

Pre-release
Pre-release
Compare
Choose a tag to compare
@hfhbd hfhbd released this 07 Jul 12:32
· 166 commits to main since this release
35a7e57

Add Boolean parameter to attrs scope of NavLink

Instead hardcoding active, it now possible to use the boolean lambda parameter for customization when the current path starts with to.

NavLink(to = "/users", { isActive ->
  if (isActive) {
    classes("active")
  }
}) {
  Text("Users")
}

What's Changed

Full Changelog: v0.2.5...v0.2.6