diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/List.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/List.kt index e39286f..2e1f505 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/List.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/List.kt @@ -27,7 +27,7 @@ fun List( } @Composable -fun List( +fun ListWithTitle( title: String, data: SnapshotStateList, vararg titleModifiers: UIKitModifier, @@ -43,3 +43,25 @@ fun List( besidesTitleAndList ?.invoke() List(data, Attrs(*ulModifiers) { ulCustomizer(this) }, elementAllocator) } + +@Deprecated("Renamed", ReplaceWith("ListWithTitle", "dev.inmo.jsuikit.elements.ListWithTitle")) +@Composable +fun List( + title: String, + data: SnapshotStateList, + vararg titleModifiers: UIKitModifier, + ulModifiers: Array = emptyArray(), + besidesTitleAndList: (@Composable () -> Unit)? = null, + titleCustomizer: AttrBuilderContext = {}, + ulCustomizer: AttrBuilderContext = {}, + elementAllocator: @Composable ElementScope.(T) -> Unit +) = ListWithTitle( + title, + data, + *titleModifiers, + ulModifiers = ulModifiers, + besidesTitleAndList = besidesTitleAndList, + titleCustomizer = titleCustomizer, + ulCustomizer = ulCustomizer, + elementAllocator = elementAllocator +)