# @fluentui/react-file-type-icons

> Fluent UI React file type icon set.

Latest version **8.18.3** (published 2026-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fluentui/react-file-type-icons
pnpm add @fluentui/react-file-type-icons
yarn add @fluentui/react-file-type-icons
bun add @fluentui/react-file-type-icons
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.18.3 |
| Published | 2026-10-26 |
| First published | 2020-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 476.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20339 |
| Maintainers | uifabricteam, uifrnbot, microsoft1es, microsoft-oss-releases |

## Links

- npm: https://www.npmjs.com/package/@fluentui/react-file-type-icons
- Repository: https://github.com/microsoft/fluentui
- Homepage: https://github.com/microsoft/fluentui#readme
- Issues: https://github.com/microsoft/fluentui/issues
- npm.io page: https://npm.io/package/@fluentui/react-file-type-icons

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.1.0
- [@fluentui/set-version](https://npm.io/package/@fluentui/set-version.md) ^8.2.24
- [@fluentui/style-utilities](https://npm.io/package/@fluentui/style-utilities.md) ^8.15.4

## Recent versions

- 8.18.3 (latest) — 2026-10-26
- 7.10.11 (lts-7) — 2023-01-30
- 8.0.0-beta.21 (beta) — 2021-02-22
- 8.18.2 — 2026-10-01
- 8.18.1 — 2026-06-30
- 8.18.0 — 2026-05-11
- 8.17.0 — 2026-02-26
- 8.16.0 — 2026-01-27
- 8.15.3 — 2025-12-10
- 8.15.2 — 2025-11-26
- 8.15.1 — 2025-11-11
- 8.15.0 — 2025-10-23
- 8.14.2 — 2025-10-16
- 8.14.1 — 2025-10-14
- 8.14.0 — 2025-10-09
- … 157 more at https://npm.io/package/@fluentui/react-file-type-icons/versions

## README

# @fluentui/react-file-type-icons

**File type icons for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
([formerly Office UI Fabric React](https://developer.microsoft.com/en-us/office/blogs/ui-fabric-is-evolving-into-fluent-ui/))

This package includes a collection of icons to represent file types.

## Getting started

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:

```tsx
import { initializeFileTypeIcons } from '@fluentui/react-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.

## Usage in code

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.

```tsx
import { Icon } from '@fluentui/react/lib/Icon';
import { getFileTypeIconProps } from '@fluentui/react-file-type-icons';

<Icon {...getFileTypeIconProps({ extension: 'docx', size: 16 })} />;
```

## Notes

See [GitHub](https://github.com/microsoft/fluentui) for more details on the Fluent UI React project and packages within.

---
_Source: https://npm.io/package/@fluentui/react-file-type-icons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
