Skip to main content

IFileTypeIconProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IFileTypeIconProps

Interface: IFileTypeIconProps

Properties

Options

PropertyTypeDescription
extension?stringExtension only (e.g. "pdf"). Takes precedence over fileName.
fileName?stringFull file name; the extension is derived from it.
size?numberPixel size. Default 24.
type?"folder" | "file"'folder' forces the folder glyph regardless of extension.

Appearance & theming

PropertyTypeDescription
className?string-
colored?booleanTint the glyph by category (default true). Set false to inherit color.