Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with dynamic components #44

Open
rgr opened this issue Apr 14, 2023 · 1 comment
Open

Compatibility with dynamic components #44

rgr opened this issue Apr 14, 2023 · 1 comment

Comments

@rgr
Copy link

rgr commented Apr 14, 2023

Hi,

would it be possible to make this package compatible with laravel dynamic components (https://laravel.com/docs/8.x/blade#dynamic-components) so we can create components that generate icons on the fly like this ?

    <x-dynamic-component component="x-feathericon-{{ $icon }}"
        class="w-5 h-5 mr-3 -ml-1 @if(request()->routeIs($routeIs)) text-primary @else text-black @endif" />

Thanks for the update !

@brunocfalcao
Copy link
Owner

That's a good point, but I need to investigate how to do it, might take some time sorry.

If you know how to do it, then please kindly consider a PR and I will surely approve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants