Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@uifabric/icons
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 @uifabric/icons
package:
import { initializeIcons } from '@uifabric/icons';
// 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 @uifabric/styling
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 styling 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 '@uifabric/styling';
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.
We found that @uifabric/icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.