Chat Icon

Use Case

You can use our api to hide and show the widget

hide() and show()

api.widget.hide() hides the widget. shows the widget.


The example below shows how to the default state of the Chat Widget to hide. Only when the Window is wider than 780 does the widget show.

drift.on("ready", api => {
 if (window.innerWidth >= 780) {

Not using Drift yet? Get your free account here!

Chat Icon

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.