Icons for Office UI Fabric React
Fabric Icons includes a collection of 1100+ icons which you can use in your application.
If you are using Fabric React components, you can make all icons available by calling the
initializeIcons function from the
;// Register icons and pull the fonts from the default SharePoint cdn.initializeIcons;// ...or, register icons and pull the fonts from your own cdn:initializeIcons'';
This will make ALL icons in the collection available, but will download them on demand when referenced using the
Usage in code
If you are using Fabric React, you can use the
Icon component and pass in the corresponding iconName property to render a given icon.
The styling package includes a
getIconClassName api which can provide a css class to use for rendering the icon manually using the
;return `<i class="" />`;
See Office UI Fabric React for more details on the UI Fabric project and packages within.