react-toolbox/components/font_icon
Felipe Matos f4f3ef0437 Missing quote 2015-11-05 22:45:32 -03:00
..
index.jsx Resolve linter errors 2015-10-21 12:25:10 +02:00
readme.md Missing quote 2015-11-05 22:45:32 -03:00
style.scss Migrate button, ripple and font icon styles to sass and add sass tooling 2015-10-02 17:39:26 +02: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. Every name corresponds with the original one but separated with dashes. The font icon is displayed with the current color so it can be inherited from the parent component.

import FontIcon from 'react-toolbox/font_icon';

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

Properties

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