react-toolbox/components/font_icon
Per Bergqwist def8643a0a Import React namespace, fix problem with @types 2016-09-02 09:18:33 +02:00
..
FontIcon.js #575: Use classname 'material-icons' if children is a string 2016-06-17 07:55:19 +10:00
index.d.ts Import React namespace, fix problem with @types 2016-09-02 09:18:33 +02:00
index.js Add specific imports for FontIcon 2016-05-29 19:38:06 +02:00
readme.md Updated Font Icon Examples. Also updated value type 2016-03-25 10:35:44 -04:00

readme.md

Font Icon

The font icon component is used to represent an icon from the Google Material Design icon font. React Toolbox does not provide the font icon for you. You need to get the icons using whatever method you want. We recommend to import the font and the associated CSS from Google Fonts as is specified here.

import FontIcon from 'react-toolbox/lib/font_icon';

const FontIcons = () => (
  <span>
    <FontIcon value='add' />
    <FontIcon value='favorite' />
    <FontIcon>star</FontIcon>
  </span>
);

Properties

Name Type Default Description
children String The key string for the icon you want to be displayed.
className String '' The class name to give custom styles such as sizing.
value String or Element The key string for the icon you want be displayed.