feat: svg component

This commit is contained in:
afn 2022-12-15 15:38:14 -05:00
parent 0923386a0f
commit 49cc968d7f

View File

@ -0,0 +1,16 @@
<script lang="ts">
export let viewBoxHeight: number;
export let viewBoxWidth = viewBoxHeight;
export let svgHeight: number;
export let svgWidth = svgHeight;
</script>
<svg
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
viewBox="0 0 {viewBoxHeight} {viewBoxWidth}"
style:height={svgHeight+'px'}
style:width={svgWidth+'px'}
>
<slot />
</svg>