A site widget is a core component of the user interface (UI) of your Wix Blocks app. Widgets are the parts of your app that visitors directly interact with, usually composed of various elements like buttons, input fields, images, and more.
This article explains how to add a site widget to your app using Wix Blocks.
Elements are the UI components that make up your widget. You can add text, media, shapes, and other elements to your widget.
Design presets allow you to create multiple designs for the same widget. The functionality remains the same, only the design changes.
Each element of your widget has an action bar that you can customize. For example, you can add a main action button, animations, and other elements to the action bar. The entire widget also has an action bar, for configuring settings and adding and removing elements. These action bars are used by a site builder who installs the app, to configure the widget and its elements.
You can change the user interface and create panels that are unique to your widget, which direct the flow and how the widget is used.
Add code to your widget to provide custom functionality and interactions using APIs. You can do this by adding properties, events, and functions to your site widget.
Click Build.
Select an app version and click Build.
Select a site to install and test your app on.
To modify your widget's installation settings, like automatically adding it to new pages, click the Wix Block logo, then go to App > Installation Settings.
Alternatively, you can do this via the Extensions page in the Dev Center. Search for Blocks, choose Widget (Wix Blocks), then click on + Create On Blocks.