Components

BaseFileIcon

The icon of a file type, coloured by its kind, from its file name.

components/ui/BaseFileIcon.vue
View in the demo

Example

report.pdf
budget.xlsx
proposal.docx
slides.pptx
photo.png
song.mp3
clip.mp4
archive.zip
app.ts

API

Props

Name
Type
Default
Description
filenamestring—The file name; the extension decides the icon and colour.

Kinds, extensions and colours live in utils/file-types.ts and the theme tokens documentPdf, spreadsheets, images…

© 2026 melsami UI.
Developer documentation for melsami UI.