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

Create macro for creating material-ui components for icons #300

Open
thebridsk opened this issue May 1, 2019 · 0 comments
Open

Create macro for creating material-ui components for icons #300

thebridsk opened this issue May 1, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@thebridsk
Copy link
Owner

object MuiIcons {
val CheckBox = MuiIcon
}

MuiIcon is a macro that takes the variable name and uses it to identify the icon in material-ui/icons

see the following to get the variable name in the macro function:
https://stackoverflow.com/questions/18450203/retrieve-the-name-of-the-value-a-scala-macro-invocation-will-be-assigned-to

@thebridsk thebridsk added the enhancement New feature or request label May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant