IconSpec Type
Deprecated in 4.16.0. Use React.ReactNode
instead.
IconSpec = string | ConditionalStringValue | React.ReactNode | ConditionalIconItem
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) orimage/svg+xml;base64
; - Anything else will be treated as a class name and be directly added to the
class
attribute.
Defined in
Last Updated: 20 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.