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

setting color #62

Open
DaveTorrey opened this issue Jul 2, 2021 · 3 comments
Open

setting color #62

DaveTorrey opened this issue Jul 2, 2021 · 3 comments

Comments

@DaveTorrey
Copy link

I don't see any clear way to define things like colors or add styles to this? Is there a way to add a class prop to be able to further define how it looks?

@DaveTorrey
Copy link
Author

nevermind, i see i can just wrap it and set a class style to that. would still be nice to be able to set it directly onto the component

@innovaweb-dev
Copy link

innovaweb-dev commented Jul 16, 2022

@DaveTorrey , Be patient or make a pull request
You can also read #37

// example with TailwindCSS
<mdicon name="hamburger" class="text-white"/>

@zenojunior
Copy link

While they don't add this prop, you can use other approach.

<mdicon name="github" class="fill-gray-400" />    <!-- example with Tailwind --> 
<mdicon name="github" style="fill: #9ca3af;" />    <!-- example with inline CSS --> 
/* style.css  */

span[role="img"].mdi > svg {
  fill: inherit;
}

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