2.0.4 • Published 9 months ago

@fabric-msft/svg-icons v2.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@fabric-msft/svg-icons

This library is a collection of SVG icons for Microsoft Fabric.

To use these icons, import the package into your project, then use individual SVG files as an image source or as an SVG.

These icons can be implemented a number of ways:

Implement as Reat Component

import { SvgAiSkills20Item } from "your-package-name";

function App() {
  return (
    <div>
      <h1>My SVG Icon</h1>
      <SvgAiSkills20Item />
    </div>
  );
}

export default App;

Since each SVG is its own React component, the impact on bundle size and runtime performance should be minimal when importing only the icons you need. However, for a very large number of icons, consider dynamic imports or other strategies to further optimize performance.

Direct File Import

import React from "react";
import { ReactComponent as AISkillsIcon } from "@fabric-msft/svg-icons/ai_skills_20_item.svg";

const Component = () => {
  return <AISkillsIcon />;
};

Using a Path

<img
  src="node_modules/@fabric-msft/svg-icons/ai_skills_20_item.svg"
  alt="Warning!"
/>
2.0.4

9 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.1

11 months ago

1.0.7

1 year ago

1.1.38

11 months ago

1.0.6

1 year ago

1.1.37

12 months ago

1.0.5

1 year ago

2.0.0

11 months ago

1.0.0

1 year ago