See the demo component here
Below, an example of using the IconButton component:
import { IconButton } from 'mdwrapper';
const Demo = () => (
<IconButton font={'star_border'} onClick={() => console.log('Demo')} />
);
List of all properties for the IconButton component:
Prop | Type | Default | Description |
---|---|---|---|
classes | array | [] | Overrides Class |
disabled | boolean | false | Available State |
font | string | 'star' | Material Design Icon Font |
onClick | function | void | Click Trigger |