Skip to content
Design System
GitHub

File type

v0.9.0Beta

An icon for a file from its name or extension, with robot formats (mcap, bag, pgm, pcd, onnx) and the extension written on it.

data
data
data
map
map
data
code
model
model
video
image
doc
sheet
archive

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

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

File type sizes

MCAP

File type variants

  • Hall-B.PGM→ map
  • patrol_route.geojson→ map
  • .env→ other
  • Makefile→ other
  • model.final.onnx→ model

File type from name

File type custom label

  • site-maps12 items
  • hall-b-map-v12.pgm3.2 MB
  • hall-b-map-v12.yaml1 KB
  • patrol-north.geojson48 KB
  • detector-v4.onnx96 MB

File type browser

Usage rules

  • Neutral like every icon; the label tells formats apart, not colour.

Changelog

  • 0.9.02026-11-17New.

How to upgrade