Text
@Composable
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)
}
}
Content copied to clipboard