custom icon
I have an svg icon located in at
resources/views/components/icons/impersonate.blade.php
. Am I able to use that within ->icon() for a table Action? Trying to keep things simple and seems overkill to have to register it with the bladeui kit14 Replies
icons.impersonate
then? 🤔@Dennis Koch scrapping using that package and just ended up creating out own basic one
i get this error
Svg by name "icons.impersonate" from set "default" not found.
looking through discord though, i swear i saw dan give this advice a few times@mark_chaney in v3 they have to be registered
but its easy
you just put them in resources/svg
follow the blade-icons docs
seems unnecessarily complicated imho
its performance related
blade icons has awful performance on large icon sets. we disable the blade components from blade icons in v3 as its a breaking change
i feel like its not complicated to put the icons in /resources/svg and uncomment some config
i must have been looking at different docs then
i guess i just saw instructions for packages, which is not the need here. i will try to find out how thats done for simple config changes
just this first example - https://github.com/blade-ui-kit/blade-icons#defining-sets
GitHub
GitHub - blade-ui-kit/blade-icons: A package to easily make use of ...
A package to easily make use of SVG icons in your Laravel Blade views. - GitHub - blade-ui-kit/blade-icons: A package to easily make use of SVG icons in your Laravel Blade views.
once youve set that up you can use the icons like normal
icon-svg-name-here
is this going to be a performance hit just to add a single icon?
theres no performance hit in v3 any more because we disabled the blade component icons
got it working. thanks
Is there also a way to use an existing icon font with this setup?
Icon font as in real font? I think the whole system heavily builds on SVGs
Ok, thanks. I'll see if I can obtain the svg variants of the icon font