Skip to main content

Widget Configuration

Each widget in a widget pack must include a mobro-widget-config.json file which defines some important metadata. These config files need to be located in the src/ directory of your widget pack. Other than that there is no special place they have to be. In our ModBros widget packs, we usually place them under src/widgets/<widget_name>/mobro-widget-config.json with the corresponding component in the same directory.

caution

If this file is missing, MoBro won't be able to locate your widget and it will not show up in the app.

Fields

NameRestrictionsDescription
nameRequired
Pattern ^[\w-]+$
Unique within a widget pack
The name (=id) of the widget within the widget pack
displayName-The nice name of the widget. If missing the name will be used
filename-Relative path to the typescript file with the corresponding React component
config-The fields that can be configured by the user in the dashboard builder