File icon
File icons show the format of a file as a sheet of paper with a colored label.
Formats
Set the format in data-type. Common formats get a color on their own, the rest stay gray.
Colors
Add .file-icon-{color} to choose the color of the label yourself.
Sizes
Use .file-icon-sm or .file-icon-lg, or set --tblr-file-icon-size.
Without a label
Leave out data-type to show a blank sheet.
Uploaded file
The file name already says the format, so the icon is hidden from assistive technology.
Invoice 2026-11.pdf
320 KB
| Name | Size | Modified |
|---|---|---|
| Annual report 2026.pdf | 2.4 MB | 12 Nov 2026 |
| Budget.xlsx | 184 KB | 10 Nov 2026 |
| Brand guidelines.pptx | 12.1 MB | 4 Nov 2026 |
| Contract draft.docx | 96 KB | 28 Oct 2026 |
| Assets.zip | 48.7 MB | 21 Oct 2026 |