Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

material-ui add icon to switch when on

import React from 'react';
import Switch from '@material-ui/core/Switch';
import AccountCircleIcon from '@material-ui/icons/AccountCircle';

export default function App() {
  return (
    <Switch 
    checkedIcon={<AccountCircleIcon/>}
    />
  );
}
 
PREVIOUS NEXT
Tagged: #add #icon #switch
ADD COMMENT
Topic
Name
1+5 =