diff --git a/CHANGELOG.md b/CHANGELOG.md index cab98bf..ebc7984 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.0.16 +* Add opportunity to customize `NavDivider` + ## 0.0.15 * Add support of link icons diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Nav.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Nav.kt index 1f66ddf..6c048c7 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Nav.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Nav.kt @@ -269,6 +269,9 @@ fun NavElement( } @Composable -fun NavDivider() { - Li({ include(UIKitNav.Divider) }) +fun NavDivider( + vararg modifiers: UIKitModifier, + attributesCustomizer: AttrBuilderContext = {}, +) { + Li({ include(UIKitNav.Divider, *modifiers);attributesCustomizer() }) }