Update sprite component

This commit is contained in:
philipp lang 2024-10-26 15:04:24 +02:00
parent da3b8ac72c
commit 3164b1c436
2 changed files with 1 additions and 8 deletions

View File

@ -15,7 +15,7 @@ class Sprite extends Component
public function render()
{
return <<<'HTML'
<svg {{ $attributes->merge(['class' => 'fill-current']) }}"><use xlink:href="/sprite.svg#{{$src}}" /></svg>
<svg {{ $attributes->merge(['class' => 'fill-current']) }}><use xlink:href="/sprite.svg#{{$src}}" /></svg>
HTML;
}
}

View File

@ -1,7 +0,0 @@
<template>
<svg v-bind="$attrs" class="fill-current"><use :xlink:href="`/sprite.svg#${$attrs.src}`" /></svg>
</template>
<script>
export default {};
</script>