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
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 |