Material-ui Account Balance icon 1

Material-ui Account Balance icon

import AccountBalanceIcon from '@material-ui/icons/AccountBalance';
// or 
import AccountBalanceWalletIcon from '@material-ui/icons/AccountBalanceWallet';
// don't forget to import the icon dependancy
// npm install @material Ui/icons

Here is what the above code is Doing:
1. We’re importing the Icon component from the @material-ui/core library.
2. We’re importing the AccountBalanceIcon from the @material-ui/icons library.
3. We’re using the Icon component to render the AccountBalanceIcon.
4. We’re passing the AccountBalanceIcon component to the Icon component as a child.
5. We’re passing the color prop to the Icon component and setting it to primary.
6. We’re passing the fontSize prop to the Icon component and setting it to large.

Similar Posts