Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase material-ui icons?

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?

like image 720
GibboK Avatar asked Dec 06 '25 17:12

GibboK


1 Answers

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>
like image 147
pinturic Avatar answered Dec 08 '25 07:12

pinturic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!