mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-10 21:26:18 +00:00
feat: svg component
This commit is contained in:
16
src/lib/components/atoms/Svg.svelte
Normal file
16
src/lib/components/atoms/Svg.svelte
Normal 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>
|
||||
Reference in New Issue
Block a user