react-toolbox/components/font_icon
Javi Velasco 709cc3746e Use i tagname for icons 2015-11-16 21:55:32 +01:00
..
index.jsx Use i tagname for icons 2015-11-16 21:55:32 +01:00
readme.md Fixes #89 2015-11-11 10:48:33 +01:00
style.scss Import globals in font icon to get the url config variable for the font 2015-11-15 22:10:05 +01: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/lib/font_icon';

const FontIcons = () => (
  <span>
    <FontIcon value='add' />
    <FontIcon value='add-circle-outline' />
    <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.