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 |
|---|---|---|---|
filename | string | — | 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…