An icon for a file from its name or extension, with robot formats (mcap, bag, pgm, pcd, onnx) and the extension written on it.
File type robot formats
Install
npx shadcn add @syncrobotic/file-type Also installs: lucide-react, @syncrobotic/cn
Overview
A file icon chosen from the name or extension, in a tile, as a bare glyph or as a label.
When to use
- File rows, upload queues and file browsers.
- Showing the format of a log, map or model.
Use something else
- A generic icon surface: Icon tile.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
File type sizes
File type variants
File type from name
File type custom label
File type browser
Usage rules
- Neutral like every icon; the label tells formats apart, not colour.
Changelog
- 0.9.02026-11-17New.