From 67a6998f02710db42ea61acad479720c9cf723eb Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 19 May 2022 18:50:43 +0600 Subject: [PATCH] add new variant of NavbarNav --- .../kotlin/dev/inmo/jsuikit/elements/NavbarNavBuilder.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/NavbarNavBuilder.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/NavbarNavBuilder.kt index c0fdd07..b919dc1 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/NavbarNavBuilder.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/NavbarNavBuilder.kt @@ -25,6 +25,12 @@ fun NavbarNav( } } +@Composable +fun NavbarNav( + vararg elements: AttrsWithContentBuilder, + attrs: Attrs = Attrs.empty() +) = NavbarNav(elements.toList(), attrs) + @Deprecated("Will be removed soon. Use NavbarNavPart with AttrsWithContentBuilder instead") interface NavbarNavElement { fun AttrsScope.setup() {}