package dev.inmo.jsuikit.elements import androidx.compose.runtime.Composable import dev.inmo.jsuikit.modifiers.* import org.jetbrains.compose.web.dom.AttrBuilderContext import org.jetbrains.compose.web.dom.Div import org.w3c.dom.HTMLDivElement @Composable fun Spinner( vararg modifiers: UIKitModifier, ratio: Float? = null, attributesCustomizer: AttrBuilderContext = {} ) { Div( { attr("uk-spinner", ratio ?.let { "ratio: $it" } ?: "") classes("uk-icon", "uk-spinner") include(*modifiers) attributesCustomizer() } ) } @Composable fun DefaultSpinner() = Spinner(UIKitAlign.Center, UIKitMargin.Small, UIKitText.Alignment.Center)