react-toolbox/components/font_icon
Javi Velasco 6495af36bd Update babel-eslint to latest version 2015-11-24 20:26:10 +01:00
..
FontIcon.jsx Update babel-eslint to latest version 2015-11-24 20:26:10 +01:00
index.js Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05:00
readme.md Removed font icon style dependency, fixes #151 2015-11-22 17:39:27 -05:00

readme.md

Font Icon

The font icon component is used to represent an icon from the Google Material Design icon font. React Toolbox automatically includes the font for you so you just need to specify the name of the icon. The font icon is displayed with the current color so it can be inherited from the parent component.

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

const FontIcons = () => (
  <span>
    <FontIcon value='add' />
    <FontIcon value='add_circle_outline' />
    <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 The key string for the icon you want be displayed.