Skip to main content

FileTypeIcon

@spartanfx/react v1.2.2


@spartanfx/react / index / FileTypeIcon

Variable: FileTypeIcon

const FileTypeIcon: React.FC<IFileTypeIconProps>;

Colored, in-house inline-SVG file-type icon — the single source of truth for file/folder glyphs across the library (DocumentManager, attachments, …). No Fluent file-type icon font, no CDN.

Example

<FileTypeIcon fileName="report.xlsx" size={16} />
<FileTypeIcon type="folder" />