Give each file row its icon from the name and the MIME type. The tag shows the extension, and the sketch and the hue show the kind.
recent-files.tsx
FileIcon
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| file | — | The file to draw: its kind and its type tag come from the name and the MIME type. | |
| kind | "archive""audio""code""data""design""document""file""image""pdf""sheet""slides""video" | — | The kind, when there is no file (or to override it). |
| children | string | — | The tag at 40px and up; default the file's type ("PDF"), else the kind's word. 5 letters at most. |
| pixel | number | 40 | The height in px; the width is 0.8 of it. Default 40. |
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |







