Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@fluentui/react-file-type-icons
Advanced tools
File type icons for Fluent UI React (formerly Office UI Fabric React)
This package includes a collection of icons to represent file types.
If you are using Fluent UI React components, you can make all file type icons available by calling the initializeFileTypeIcons
function from the @fluentui/react-file-type-icons
package:
import { initializeFileTypeIcons } from '@fluentui/react-file-type-icons';
// Register icons and pull the fonts from the default SharePoint cdn.
initializeFileTypeIcons();
// ...or, register icons and pull the fonts from your own cdn:
initializeFileTypeIcons('https://my.cdn.com/path/to/icons/');
NOTE: Do not use the item-types-fluent
icon set that was previously uploaded to the Fabric CDN; it is deprecated.
If you are using Fluent UI React, you can use the Icon
component and pass in the corresponding icon properties to render a given icon.
import { Icon } from '@fluentui/react/lib/Icon';
import { getFileTypeIconProps } from '@fluentui/react-file-type-icons';
<Icon {...getFileTypeIconProps({ extension: 'docx', size: 16 })} />;
See GitHub for more details on the Fluent UI React project and packages within.
FAQs
Fluent UI React file type icon set.
We found that @fluentui/react-file-type-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.