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 kit
14 Replies
Dennis Koch
Dennis Koch2y ago
You need to register it through Blade Icons. Check my PR on the impersonate package. Can't you just use icons.impersonate then? 🤔
Mark Chaney
Mark ChaneyOP2y ago
@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
Dan Harrin
Dan Harrin2y ago
@mark_chaney in v3 they have to be registered but its easy you just put them in resources/svg follow the blade-icons docs
Mark Chaney
Mark ChaneyOP2y ago
seems unnecessarily complicated imho
Dan Harrin
Dan Harrin2y ago
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
Mark Chaney
Mark ChaneyOP2y ago
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
Dan Harrin
Dan Harrin2y ago
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.
Dan Harrin
Dan Harrin2y ago
once youve set that up you can use the icons like normal icon-svg-name-here
Mark Chaney
Mark ChaneyOP2y ago
is this going to be a performance hit just to add a single icon?
Dan Harrin
Dan Harrin2y ago
theres no performance hit in v3 any more because we disabled the blade component icons
Mark Chaney
Mark ChaneyOP2y ago
got it working. thanks
bwubs
bwubs2y ago
Is there also a way to use an existing icon font with this setup?
Dennis Koch
Dennis Koch2y ago
Icon font as in real font? I think the whole system heavily builds on SVGs
bwubs
bwubs2y ago
Ok, thanks. I'll see if I can obtain the svg variants of the icon font
Want results from more Discord servers?
Add your server