If you want to enlarge the SVG icon in material-ui iconButtons? If you set just the height or the width, nothing happens–only seems to work when you set height & width to the same value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { largeIcon: { width: 60, height: 60, }, }; const IconButtonExampleSize = () => ( <div> <IconButton iconStyle={styles.largeIcon} > <ActionHome /> </IconButton> </div> ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.