Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@uifabric/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 @uifabric/file-type-icons
package:
import { initializeFileTypeIcons } from '@uifabric/file-type-icons';
// Register icons and pull the fonts from the default Microsoft Fluent CDN:
initializeFileTypeIcons();
// Or register icons and pull the fonts from a different CDN or folder path:
initializeFileTypeIcons('https://my.cdn.com/path/to/icons/');
NOTE: Proceed carefully if you override the default CDN location, whose contents may not match the registered file type icons and supported extensions. Do not use the item-types-fluent
icon set that was previously uploaded to the Fluent CDN; it's 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 '@uifabric/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.
The npm package @uifabric/file-type-icons receives a total of 1,650 weekly downloads. As such, @uifabric/file-type-icons popularity was classified as popular.
We found that @uifabric/file-type-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.