summaryrefslogtreecommitdiff
path: root/resources/views/components/svg.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/components/svg.blade.php')
-rw-r--r--resources/views/components/svg.blade.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/views/components/svg.blade.php b/resources/views/components/svg.blade.php
new file mode 100644
index 0000000..7bbbebf
--- /dev/null
+++ b/resources/views/components/svg.blade.php
@@ -0,0 +1,8 @@
+@inject('svg', 'Lightscale\LaralightSvg\SvgService')
+@props([
+ 'collection',
+ 'name',
+])
+<svg {{ $attributes }}>
+ <use href="{{ $svg->getCollectionUrl($collection, $name) }}" />
+</svg>