ImageSourceType Type alias

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".

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

Defined in

Last Updated: 30 November, 2023