Widget Appearance
Configure the window in the Widget channel settings.
Window And Appearance
Display mode defines how the widget appears on the site:
- Popup - the widget opens from a floating button and shows a window over the page;
- Embedded - the widget is embedded into a page container without a floating button.
For a popup, choose its position: top left, top right, bottom left, or bottom right. Width is limited to 200-800 px and height to 300-1000 px. Enter an exact value in the numeric field, or use the width slider and height slider for visual adjustment. Corner radius works for both popup and embedded modes; it can also be changed with the radius slider. The Shadow switch enables or disables the shadow around the window.

Color scheme sets light, dark, or automatic mode. In automatic mode, the widget follows the user's browser settings. If the website has its own theme switcher, a developer can sync the widget with it.
Language can be set to Russian, English, or Auto.

Click the gear to the right of the color scheme options.

In Widget colors, each theme has two colors:
| Theme | Window background | Accent color |
|---|---|---|
| Light | Background HEX code or background picker | Accent HEX code or accent picker |
| Dark | Background HEX code or background picker | Accent HEX code or accent picker |
Enter a color as #RRGGBB or choose it in the picker. The accent is used for active elements, buttons, and highlights. Surface, border, and text shades are selected automatically. An empty field keeps the default color; without custom colors, the default appearance stays unchanged. In Auto mode, the widget uses the colors of the matching browser theme.
The Default colors button resets the light or dark theme separately. Click Apply to see the colors in the preview, then save the widget settings with the main save button. Cancel closes the dialog without applying changes. Colors of the floating site button are configured separately.

Rounding changes immediately in preview but is saved only after the save button is clicked. The saved border_radius applies on the next widget initialization unless the site overrides it through init. To change an already running instance temporarily, a developer can call SenlerWidget.configure({ borderRadius: 18 }); this value is not written to channel settings.
The floating button position and colors are configured in Widget Button. Change the chat title and input placeholder in Widget Texts, and the image and first-question options in Greeting.
Closing And Collapsing
In popup mode, the close button is already available in the widget header, so you do not need to add it separately. SenlerWidget.close() hides the window, and SenlerWidget.open() shows it again.
In embedded mode, the regular close button is hidden. A developer can enable a collapse button inside the header with shell.collapse_button: true. Clicking it calls onCollapse(detail) and dispatches senler-widget:collapse-request, but does not hide the widget automatically. The site chooses one handler and calls SenlerWidget.close() or closes its outer panel. SenlerWidget.open() shows the hidden widget again. A complete example is available in the Public API guide.
SenlerWidget.destroy() is not a collapse operation: it completely removes the instance, so another initialization is required.