
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@fluentui/font-icons-mdl2
Advanced tools
Icons for Fluent UI React (formerly Office UI Fabric React)
Fluent UI React Icons includes a collection of 1100+ icons which you can use in your application.
If you are using Fluent UI React components, you can make all icons available by calling the initializeIcons
function from the @fluentui/font-icons-mdl2
package:
import { initializeIcons } from '@fluentui/font-icons-mdl2';
// Register icons and pull the fonts from the default SharePoint cdn.
initializeIcons();
// ...or, register icons and pull the fonts from your own cdn:
initializeIcons('https://my.cdn.com/path/to/icons/');
This will make ALL icons in the collection available, but will download them on demand when referenced using the @fluentui/style-utilities
APIs getIcon
or getIconClassName
.
If you are using Fluent UI React, you can use the Icon
component and pass in the corresponding iconName property to render a given icon.
import { Icon } from '@fluentui/react/lib/Icon';
<Icon iconName="Snow" />;
getIconClassName
APIThe @fluentui/style-utilities
package includes a getIconClassName
API which can provide a css class to use for rendering the icon manually using the :before
pseudoselector:
import { getIconClassName } from '@fluentui/style-utilities';
return `<i class="${getIconClassName('Snow')}" />`;
See GitHub for more details on the Fluent UI React project and packages within.
FAQs
Fluent UI React icon set.
The npm package @fluentui/font-icons-mdl2 receives a total of 118,162 weekly downloads. As such, @fluentui/font-icons-mdl2 popularity was classified as popular.
We found that @fluentui/font-icons-mdl2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.