Package-level declarations

Types

Link copied to clipboard
data class SKAnnotatedText(val text: String, val spans: List<SKTextSpan> = emptyList())

Framework-agnostic rich text model.

Link copied to clipboard
sealed interface SKSpanStyle

Portable span style — mapped to Compose AnnotatedString / XML Spannable by bridges.

Link copied to clipboard

Horizontal text alignment. Respects RTL via Start/End.

Link copied to clipboard
class SKTextComponent(id: String, config: SKComponentConfig = SKComponentConfig( appearance = SKAppearanceConfig.Text, behavior = SKBehaviorConfig.Passive, ), annotated: SKAnnotatedText = SKAnnotatedText.plain(""), overflow: SKTextOverflow = SKTextOverflow.Clip, maxLines: Int = Int.MAX_VALUE, softWrap: Boolean = true, textAlign: SKTextAlign = SKTextAlign.Start) : SKBaseInteractiveComponent

Shared SKText contract used by Compose io.skone.compose.widget.SKText and XML io.skone.xml.widget.SKTextView.

Link copied to clipboard

Text overflow behavior for SKTextComponent surfaces.

Link copied to clipboard
data class SKTextSpan(val start: Int, val end: Int, val styles: List<SKSpanStyle>)

A span applied to a start, [end) range of SKAnnotatedText.text.