✅ You are viewing documentation for the latest version of Compose SDK.
Version:

# Type alias WithCommonWidgetProps<BaseWidget, Type>

WithCommonWidgetProps: <BaseWidget, Type> BaseWidget & { id: string; widgetType: Type; }

A utility type that combines widget-specific properties (BaseWidget) with a common widget props including corresponding widget type (Type).

# WithCommonWidgetProps.id

readonly id: string

Unique identifier of the widget within the container component (dashboard)

# WithCommonWidgetProps.widgetType

widgetType: Type

Widget type

# Type parameters

Parameter Description
BaseWidget
Type