Add Boolean parameter to attrs scope of NavLink
Pre-release
Pre-release
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
- Fix docs cleanup by @hfhbd in #198
- Fix broken webpackCli... by @hfhbd in #200
- Add Boolean parameter to attrs scope of NavLink by @hfhbd in #201
Full Changelog: v0.2.5...v0.2.6