This sample demonstrates how to use assets in a widget.
How to use the sample
Clone the sample repo and copy this widget's folder (within widgets) to the client/your-extensions/widgets folder of your Experience Builder installation.
How it works
This widget requires an asset (e.g. 'some-png.png') or the use of props.context.folderUrl to load an asset. The asset is then used in an <Icon> component or a <img> tag.