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.

API reference

Generated from the types. Every part also takes className.

FileTypeIcon

namerequired
stringA file name ("route.geojson") or a bare extension ("geojson").
size
"sm" | "md" | "lg" = "md"
variant
"label" | "icon" | "tile" = "tile"tile: the icon on a muted tile with the extension; icon: the glyph only; label: the extension as a tag.
label
stringOverride the written label, e.g. "ROS 2" for db3.