menu
Dark Mode
backgroundLayer 1
preact-material-components
Components and their props
  • Icon
    • no specific props
Sample code
import {h, Component} from 'preact';
import Icon from 'preact-material-components/Icon';

export default class ListPage extends Component {
  render(){
    return (
      <div>
        <div><Icon>menu</Icon></div>
        <div><Icon>favorite_border</Icon></div>
      </div>
    );
  }
}
Demo
menu
favorite_border
Note
In order to use these you will need to import respective font icons
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>