import * as React from 'react'; import { FontIcon } from 'office-ui-fabric-react/lib/Icon'; import { mergeStyles, registerIcons } from 'office-ui-fabric-react/lib/Styling'; // Use the registerIcons api from the styling package to register custom svg icons so that they // can be used by the Icon component (or in anything that renders Icons, like Buttons). registerIcons({ icons: { 'onedrive-svg': ( ), 'yammer-svg': ( ), 'borderblinds-svg': ( ), }, }); const iconClass = mergeStyles({ fontSize: 50, height: 50, width: 50, margin: '0 25px', }); const BorderBlindsIcon: React.FunctionComponent<{ color1?: string; color2?: string; color3?: string }> = props => { const { color1 = 'red', color2 = 'green', color3 = 'blue' } = props; // FontIcon is an optimized variant of standard Icon. // You could also use the standard Icon here. return ( ); }; export const IconSvgExample: React.FunctionComponent = () => { // FontIcon is an optimized variant of standard Icon. // You could also use the standard Icon here. return (
); };