Line

@Composable
fun ElementScope<SVGElement>.Line(attrs: SVGLineAttrsScope.() -> Unit)(source)

Type-safe API for creating an SVGLineElement.

For example, to create a Line from (3, 12) to (21, 12):

Svg {
Line {
x1(3)
x2(21)
y1(12)
y2(12)
}
}

See also