Text

@Composable
fun ElementScope<SVGElement>.Text(text: String, attrs: SVGTextAttrsScope.() -> Unit)(source)

Type-safe API for creating an SVGTextElement.

For example, to create a Text of value "Hello World":

Svg {
Text("Hello World") {
x(20)
y(40)
fill(Color.blue)
rotate(0, 30)
fontSize(15)
fontWeight(FontWeight.SemiBold)
textDecoration(TextDecorationLine.Underline)
}
}

See also