i am using Fluent UI in my project. I initializing my button with this simple code in javascript: and i can override default color to asked one. My question is, how to set mouse hover color over button? https://learn.microsoft.com/en-us/javascript/api/react/iiconprops?view=office-ui-fabric-react-latest#@fluentui-react-iiconprops-styles-member Answer For IconButton, DefaultButton and PrimaryButton you have property root for default button style, rootHovered, rootChecked etc. for different states. Codepen
Tag: fluentui-react
How can I pass innerHTML to an onClick function (Typescript)
I’m trying to pass the Square element’s innerHTML to the onClick function. I have also tried to pass in just i but it always is equal to 100. Is there a way to either pass i when it’s equal to the same value that goes into the Square or is there a way to pass the innerHTML to the function.