---
title: "TYPO3 Icon API"
manual: "Vite AssetCollector"
version: "main"
permalink: "https://docs.typo3.org/permalink/praetorius/vite-asset-collector:icon-api@main"
source: "Reference/IconApi.rst"
rendered: "2026-09-20T09:42:55+00:00"
---

# TYPO3 Icon API {#icon-api}

The extension includes a custom `SvgIconProvider` for the [TYPO3 Icon API](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Icon/Index.html#icon)
which allows you to register SVG icon files generated by Vite. This works both in frontend
and backend context.

To register a new icon, add the following to the `Configuration/Icons.php` file:

**Configuration/Icons.php**

```php
return [
    'site-logo' => [
        'provider' => \Praetorius\ViteAssetCollector\IconProvider\SvgIconProvider::class,
        'source' => 'assets/Image/Icon/typo3.svg',
        'manifest' => 'path/to/manifest.json', // optional, defaults to defaultManifest
    ],
];
```

Then you can use the [Icon ViewHelper \<core:icon>](https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/Core/Icon.html#typo3-core-icon)
to use the icon in your templates.
