Skip to main content
Version: 2.0.0-alpha

Function: getIconForProperty

getIconForProperty(property, color?, fontSize?): React.ReactNode

Parameters

NameTypeDefault value
propertyResolvedStringProperty | ResolvedNumberProperty | ResolvedBooleanProperty | ResolvedReferenceProperty | ResolvedGeopointProperty | ResolvedTimestampProperty | ResolvedMapProperty<{ [Key: string]: any; }> | ResolvedArrayProperty<CMSType[], any> | PropertyOrBuilder<CMSType, any>undefined
color"disabled" | "error" | "inherit" | "action" | "secondary" | "primary""inherit"
fontSizeundefined | "small" | "inherit" | "medium" | "large""inherit"

Returns

React.ReactNode

Defined in

lib/src/core/util/property_utils.tsx:42