The Widget API enables you to interact with a site widget that's currently selected in the editor. Use this API in the widget's settings panel code.
When writing multiple widget properties from a settings panel, serialize setProp() calls and confirm each value with getProp() before the next write. See setProp() for details.
To use the Widget API, follow the setup instructions for the Editor API.
Last updated: 25 August 2026