mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-15 12:53:51 +00:00
22 lines
549 B
Kotlin
22 lines
549 B
Kotlin
|
package dev.inmo.jsuikit.elements
|
||
|
|
||
|
import androidx.compose.runtime.Composable
|
||
|
import dev.inmo.jsuikit.modifiers.UIKitTile
|
||
|
import dev.inmo.jsuikit.modifiers.include
|
||
|
import dev.inmo.jsuikit.utils.Attrs
|
||
|
import org.jetbrains.compose.web.dom.ContentBuilder
|
||
|
import org.jetbrains.compose.web.dom.Div
|
||
|
import org.w3c.dom.HTMLDivElement
|
||
|
|
||
|
@Composable
|
||
|
fun Tile(
|
||
|
attrs: Attrs<HTMLDivElement> = Attrs.empty(),
|
||
|
contentBuilder: ContentBuilder<HTMLDivElement>
|
||
|
) = Div(
|
||
|
{
|
||
|
include(UIKitTile)
|
||
|
attrs.builder(this)
|
||
|
},
|
||
|
contentBuilder
|
||
|
)
|