Path

@Composable
fun ElementScope<SVGElement>.Path(attrs: SVGPathAttrsScope.() -> Unit)(source)

Type-safe API for creating an SVGPathElement.

For example, to create a ChevronDownIcon using Path

Svg {
Path {
d {
moveTo(16.59, 8.59)
lineTo(12, 13.17)
lineTo(7.41, 8.59)
lineTo(6, 10)
lineTo(6, 6, isRelative = true)
lineTo(6, -6, isRelative = true)
closePath()
}
}
}

See also