commonMain.com.huanshankeji.compose.foundation.text.ext.Text.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML
The newest version!
package com.huanshankeji.compose.foundation.text.ext
import androidx.compose.runtime.Composable
import com.huanshankeji.compose.foundation.text.BasicText
import com.huanshankeji.compose.ui.Modifier
import com.huanshankeji.compose.ui.graphics.ColorProducer
const val INLINE_TEXT_DEPRECATED_MESSAGE = "Both text with or without a `span` ta can be inline."
@Deprecated(INLINE_TEXT_DEPRECATED_MESSAGE, ReplaceWith("TaglessBasicText(text)"))
@Composable
fun InlineBasicText(text: String) =
TaglessBasicText(text)
/**
* Delegates to raw text without any tag element on JS / Compose HTML.
*/
@Composable
expect fun TaglessBasicText(text: String)
/**
* An alias for [BasicText].
*/
@Composable
fun SpanBasicText(text: String, modifier: Modifier = Modifier, color: ColorProducer? = null) =
BasicText(text, modifier, color)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy