Skip to main content
Version: 2.0.0-alpha

Function: getBadgeForWidget

getBadgeForWidget(widget, color?): React.ReactNode

Parameters

NameTypeDefault value
widgetundefined | Widgetundefined
color"disabled" | "error" | "inherit" | "action" | "secondary" | "primary""inherit"

Returns

React.ReactNode

Defined in

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