ImageSourceType Type

ImageSourceType = "svg" | "url" | "binary" | "core-icon" | "webfont-icon"

Type of loaded image source:

  • "svg" will render svg strings inline with the rest of the DOM
  • "url" will render a simple img tag with url as it's source
  • "binary" expects a HEX string for the value and will render raw image
  • "core-icon" will render an icon bundled with @itwin/core-react
  • "webfont-icon" will render web font icon from provided font-family. When no font-family given, defaults to "bentley-icons-generic-webfont".

Defined in

Last Updated: 20 November, 2024