We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693058b commit 0fd961eCopy full SHA for 0fd961e
src/Support/Html/Elements/Icon.php
@@ -10,6 +10,8 @@ class Icon extends BaseElement
10
11
public function svg(?string $name = null, ?string $class = null, ?array $attributes = []): static
12
{
13
+ throw_if(! function_exists('svg'), 'Make sure blade-ui-kit/blade-icons is installed');
14
+
15
return $this->html(svg($name, $class, $attributes)->toHtml());
16
}
17
0 commit comments