Update sprite component

This commit is contained in:
philipp lang 2024-10-26 15:04:24 +02:00
parent 45de2da93e
commit 3a1c327cfe
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>