FileIcon
proFileIcon renders a colored SVG badge for common file types, with a folder variant and automatic fallback for unknown extensions.
Installation
Add this component with the NateUI CLI.
Examples
Sizes
All Supported Types
pdf
xlsx
csv
doc
ppt
jpg
png
gif
svg
mp4
mp3
txt
directory
xyz
API
| Prop | Description | Type | Default |
|---|---|---|---|
type | File extension or 'directory'. Determines the rendered media glyph, label badge, or folder icon. | string | — |
size | Width and height of the SVG in pixels. | number | 30 |