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

Default class for feather icons #7

Closed
oliverbj opened this issue Jun 12, 2020 · 2 comments
Closed

Default class for feather icons #7

oliverbj opened this issue Jun 12, 2020 · 2 comments

Comments

@oliverbj
Copy link

When using the feather icon package normal, you can specify:

//Feather Icons
const feather = require('feather-icons');
feather.replace({class: 'inline-block w-4 h-4'})

As you can see, I can specify the class attribute. These classes will be appended to all icons automatically.

Feather Icons has a lot of options. See them here.

@poldixd
Copy link
Owner

poldixd commented Jun 13, 2020

I'm not really sure, what your mean, but here I use the class attribute to put the blade syntax ({{ $class ?? null }}) into the blade template:

class: "{{ $class ?? null }}",

@poldixd
Copy link
Owner

poldixd commented Jul 16, 2020

I'm closing this Issue because of inactivity.

@poldixd poldixd closed this as completed Jul 16, 2020
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