Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uifabric/icons

Package Overview
Dependencies
Maintainers
3
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uifabric/icons

Office UI Fabric icon set.

  • 5.8.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Office UI Fabric - Icons

The React-based front-end framework for building experiences for Office and Office 365.

Fabric Icons includes a collection of 1100+ icons which you can use in your application.

Getting started

If you are using Fabric 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.

Usage in code

getIcon API

If you are using Fabric React, you can use the Icon component and pass in the corresponding iconName property to render a given icon.

import { Icon } from 'office-ui-fabric-react/lib/Icon';

<Icon iconName='Snow' />

The 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')}" />`;

Notes

See Office UI Fabric React for more details on the UI Fabric project and packages within.

FAQs

Package last updated on 16 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc