
File Type renders a compact SVG icon for a file based on a MIME type, extension, or file name. Use it in file lists, upload previews, attachment cards, media libraries, document pickers, and activity feeds where a file needs a clear visual type indicator.
The component resolves explicit extensions first, then file name extensions, then MIME types. Unknown files fall back to TXT by default, or to the fallback type you provide.
File Type only renders the icon. Pair it with Upload, List, Card, DataView, or Table when users need selection, progress, actions, metadata, or records around the file.