I am importing an icon from material-ui and using in my JSX code as
Full code:
import ArrowUp from 'material-ui-icons/KeyboardArrowUp'
<Button fab color="primary">
<ArrowUp style={{fontSize: '200%'}} />
</Button>
Using fontSize I cannot increase its size.
What is the proper way to handle it? What am I doing wrong?
Try adding the label style of the button like below
import ArrowUp from 'material-ui-icons/KeyboardArrowUp'
<Button fab color="primary" labelStyle={{ fontSize: '200%' }}>
<ArrowUp />
</Button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With