useWidget<
W
>(createWidget
,props
,propsConfig
?):WidgetSlotContext
<W
>
The useWidget function.
Allows to create and attach an agnos-ui/core widget to the current react component.
• W extends Widget
<object
, object
, object
, object
>
The type of the widget.
the widget factory
Partial
<WidgetProps
<W
>> = {}
the props
the props config
the state and api to track and interact with the widget