IconSpec Type alias

Prototype for an IconSpec which can be a string, ReactNode or ConditionalStringValue. Strings are expected to be one of the following:

  • Created by IconSpecUtilities.createWebComponentIconSpec in appui-abstract (deprecated).
  • A URL to a SVG file (must end with ".svg").
  • A dataURI with MimeTypes image/svg+xml (ensure valid dataURI encoding) or image/svg+xml;base64;
  • Anything else will be treated as a class name and be directly added to the class attribute.

IconSpec = string | ConditionalStringValue | React.ReactNode | ConditionalIconItem

Defined in

Last Updated: 22 March, 2024