Skip to main content

WidgetContainer

Interfaces

WidgetContainerProps

Defined in: canvas/components/WidgetContainer.tsx:11

Properties

PropertyTypeDescriptionDefined in
heightstringHeight of the widget container.canvas/components/WidgetContainer.tsx:21
idstringID of the widget.canvas/components/WidgetContainer.tsx:13
setSettings(settings: WidgetSettings) => voidCallback function to update the settings of the specific widget.canvas/components/WidgetContainer.tsx:17
settingsWidgetSettingsThe settings of the widget.canvas/components/WidgetContainer.tsx:15
widthstringWidth of the widget container.canvas/components/WidgetContainer.tsx:19

Functions

default()

default(__namedParameters): Element

Defined in: canvas/components/WidgetContainer.tsx:34

The widget container component that wraps around each user widget.

It wraps the widget in a draggable container with a grip handle on the top right corner on hover. It adds no padding within the container to allow users to have full control over the appearance.

If the child (i.e., the widget) throws a rendering error, it will be caught by the error boundary and displayed with the ErrorDisplay component.

Parameters

ParameterType
__namedParametersPropsWithChildren<WidgetContainerProps>

Returns

Element