All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.huanshankeji.compose.foundation.text.ext.Text.kt Maven / Gradle / Ivy

Go to download

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