react-toolbox/components/font_icon
Javi Velasco abcd097830 Fixes #214 2015-12-19 21:06:18 +01:00
..
FontIcon.jsx Fixes #214 2015-12-19 21:06:18 +01:00
index.js Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
readme.md Update FontIcon docs 2015-11-29 19:01:22 +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 does not provide the font icon for you. You'd 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='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.