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

Change attributes #103

Open
berdnikov opened this issue Jan 22, 2020 · 2 comments
Open

Change attributes #103

berdnikov opened this issue Jan 22, 2020 · 2 comments

Comments

@berdnikov
Copy link

Hello. Tell me please how to change SVG attributes in icon. For example,
<dynamic-icon icon="img/social/fb.svg" width="30" height="30" /> doesn't change SVG attributes :(

@mjmcphail
Copy link

mjmcphail commented Jan 23, 2020

wow cant paste code... this interface is terrible.

Anyhow... assuming you have included the icon as a component in your script section, you can add into markup like this:

then at your scoped style section:

.icon {
height: 40px;
width: 40px;
fill:cornflowerblue;
}

@pp-vlad
Copy link

pp-vlad commented Jun 4, 2021

valid use case. for example I want to pass viewBox prop

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

3 participants