WidgetContainer
Interfaces
WidgetContainerProps
Defined in: canvas/components/WidgetContainer.tsx:11
Properties
Property | Type | Description | Defined in |
---|---|---|---|
height | string | Height of the widget container. | canvas/components/WidgetContainer.tsx:21 |
id | string | ID of the widget. | canvas/components/WidgetContainer.tsx:13 |
setSettings | (settings : WidgetSettings ) => void | Callback function to update the settings of the specific widget. | canvas/components/WidgetContainer.tsx:17 |
settings | WidgetSettings | The settings of the widget. | canvas/components/WidgetContainer.tsx:15 |
width | string | Width 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
Parameter | Type |
---|---|
__namedParameters | PropsWithChildren <WidgetContainerProps > |
Returns
Element