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

Add SVG prop to Avatars #132

Closed
EstebanBorai opened this issue Feb 12, 2018 · 4 comments
Closed

Add SVG prop to Avatars #132

EstebanBorai opened this issue Feb 12, 2018 · 4 comments

Comments

@EstebanBorai
Copy link

Hey I was checking out this repo and I was wondering if it could be possible to have the option of rendering SVG Icons inside avatars or as Icons? This makes possible the availability of any SVG design/code inside a project that is using Evergreen!

@jeroenransijn
Copy link
Contributor

Hi @EstebanBorai thanks for checking out Evergreen and taking the time to create an issue — much appreciated! Could you describe your use case or potentially share a simple paper sketch of what you are trying to achieve. As far as I understand it you are asking for support of a icon prop on the Avatar component — which would render a icon inside of the Avatar instead of the initials or image?

@EstebanBorai
Copy link
Author

Thanks for your attention @jeroenransijn !
Yes! I would like to render SVG Icons inside an Avatar Component just like Material UI does.
It's very useful and let's people use their own designs.

@Rowno
Copy link
Contributor

Rowno commented Feb 13, 2018

Just FYI, you can already use any image you want using the src prop, which can be passed any file path that <img> supports (including SVG files). Not sure if that's what you want?

@EstebanBorai
Copy link
Author

Thanks @Rowno and @jeroenransijn ! I'm setting the issue as closed as the component already supports SVG through src 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