Widgets are interactive multimedia elements that can be part of an explorable. They can developed using web technologies and published as packages.
Corresponding to Explorables, Widgets are simply HTML elements, again implementing the same APIs (
HTMLElement). This means that any element that can be defined in HTML can become a Widget, as well. New HTML elements can be defined as Web Components. This means a widget can support any and every web technology capable of running in the browser. This includes standard web APIs, JS packages/modules for the browser, and so on.
As each widget comes in a Package that is loaded and bundled with
esbuild when a document is saved,
all content types of esbuild are supported.
To authors, widgets are part of a broad palette to create an explorable. They may use the different rich text elements provided by WebWriter and mix them with other available widgets. To users, widgets are just parts of the explorable they are viewing. Widgets are a seamless part of the page and probably not considered very closely by users.