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

Multiple Masks/Decorators #55

Open
gossi opened this issue Jun 30, 2018 · 1 comment
Open

Multiple Masks/Decorators #55

gossi opened this issue Jun 30, 2018 · 1 comment

Comments

@gossi
Copy link

gossi commented Jun 30, 2018

I've been experimenting around lately with a nice API to add decorators (which uses mask(s) under the hood). I was at least able to add one (more is I guess easily possible, but my limited SVG knowledge stopped me there). Coming up with this API:

<FaIcon @icon='user' as |icon|>
  <icon.decorator @icon='plus' @position='br' />
</FaIcon>

I put this together in a gist: https://gist.github.com/gossi/9d4090dba409c047c267cfba877f7065
Multiple masks would I guess be a nice addition to FA-Core and and a new playground for those using the JS api. I hope you can push this idea upstream.

@robmadole
Copy link
Member

Yeah, neat idea :) We'll keep this in mind for the core library.

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

No branches or pull requests

2 participants