score:1
this issue has been raised on their github page and later added to their documents.
below is the copy&paste from their doc,
registering icons
import { registericons } from '@uifabric/styling';
import icon from '@fortawesome/react-fontawesome';
registericons({
icons: {
'home': <icon icon={['fal', 'home']} />,
'homesolid': <icon icon={['fas', 'home']} />,
}
});
using it
import { button } from 'office-ui-fabric-react/lib/button';
const icontest = () => <button iconprops={{ iconname: 'homesolid' }} />
Source: stackoverflow.com
Related Query
- How can I use Font Awesome icons in an Office UI Fabric React icon button component?
- How to use Font Awesome Icons with Text using ternary operator in React JS?
- Font Awesome 5 use social/brand icons in React
- How to use Icons like Font Awesome in Gatsby
- How to achieve Font Awesome stack icons feature in react native
- How to get Font Awesome Icon in react app for a pseudo element in css
- How to focus a button in a details list using React and Office Fabric
- How we can close the error messagebar of office react fabric component?
- I use React js and Material-UI. How can i validate "correct" green color validation on button submit click?
- How to eliminate gap between Font Awesome Icon and paragraph in React JS?
- How to reflect font awesome icons in the react project?
- How do I conditionally render font awesome icons in react
- How can I create a counter as components to use multiple times and create one button to reset all the counter in React JS?
- How to use Font Awesome 6 icons in React.js, especially social icons?
- How can I use React icons in Placeholder?
- react change button icon with font awesome unicodes
- How to use useEffect to change icon of a button on cursor hover in react
- How can I use input type='text' in a Icon Button (Material UI) in React?
- React Bootstrap: How can I change the icon of Dropdown.Toggle from the arrow icon to some other icons from React Icon?
- How to use a font awesome icon to react-table v7 with expand / contract?
- how to use font awesome in react with map()
- How to change the color of radio button with font awesome icon in react, styled components
- How to use numbers on icons with font awesome in REACT?
- How can you use ContextualMenu with Persona in Office Fabric UI React?
- How to include a Font Awesome icon in React's render()
- How can I make use of Error boundaries in functional React components?
- react Material-ui, How do I know I can use onClick for button?
- How can I use React hooks in React classic `class` component?
- How we can use pipes in React JavaScript?
- How to know if react-router can go back to display back button in react app
More Query from same tag
- Warning: Prop `className` did not match. Switching from light to dark mode using cookies (Nextjs, Mui5)
- How do I pass an array of objects that contains a component to child component in React with Typescript?
- Test two different npm package versions at the same time
- Apparently no causes for the error "TypeError: Cannot read properties of undefined "
- Annotating Custom React Hook With TypeScript
- How to deploy react project to ftp using Bitbucket Pipelines?
- Private method in Typescript definitions(React)
- Why props alone are being used in called React function component?
- TypeError: Cannot read properties of undefined (reading '0')
- React JS Jest mock implementation of Class with static members
- Invalid Hook Call when executing anonymous function using button onClick
- How to add react to an existing express multipage project with ejs?
- Using Reactjs to align and display results based on Contestant ID
- Stanza.io send message with customer attributes in ReactJS
- React Deployment in Azure DevOps
- Why does storing Open Weather Api fetched data in saved state not render in React JS?
- Can't remove a todo in react / redux
- Select value doesn't change the first time I trigger onChange event
- React condtional render (mobile view and Desktop view ) issue
- How to convert array in Object in JavaScript?
- How to delete a list item with React (function component)
- If I can't mutate a state, how should I update an array of objects?
- How can I add conditions to my input in react?
- How to clear browser back button history in react-router-dom
- How to remove trailing slash in react-router URLs
- Why is my confirm password field not firing validation at all (react-hook-form)
- Redux Form - initialValues not updating when using compose
- How to cache expensive custom hook function (sourced by RTK Query results) across components?
- How to open specific post dropdown menu without effecting the others?
- Office UI Fabric React Icons not showing with Gatsby