svg

fun svg(block: SvgBuilder.() -> Unit): Svg

Creates an SVG element using a DSL-style builder.

This function serves as the entry point for constructing SVG elements. It initializes an SvgBuilder instance, applies the provided configuration block to it, and then builds and returns the resulting Svg element.

Return

The constructed Svg element.

Parameters

block

A lambda with receiver that configures the SvgBuilder.