mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-22 00:27:25 +00:00
add inline support
This commit is contained in:
parent
1d6c0db692
commit
d8be33d4f6
18
src/jsMain/kotlin/dev/inmo/jsuikit/elements/Inline.kt
Normal file
18
src/jsMain/kotlin/dev/inmo/jsuikit/elements/Inline.kt
Normal file
@ -0,0 +1,18 @@
|
||||
package dev.inmo.jsuikit.elements
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import dev.inmo.jsuikit.modifiers.UIKitUtility
|
||||
import dev.inmo.jsuikit.modifiers.include
|
||||
import org.jetbrains.compose.web.dom.AttrBuilderContext
|
||||
import org.jetbrains.compose.web.dom.ContentBuilder
|
||||
import org.jetbrains.compose.web.dom.Div
|
||||
import org.w3c.dom.HTMLDivElement
|
||||
|
||||
@Composable
|
||||
fun Inline(
|
||||
attrBuilderContext: AttrBuilderContext<HTMLDivElement>? = null,
|
||||
contentBuilder: ContentBuilder<HTMLDivElement>
|
||||
) = Div({
|
||||
include(UIKitUtility.Inline)
|
||||
attrBuilderContext ?.invoke(this)
|
||||
}, contentBuilder)
|
Loading…
Reference in New Issue
Block a user