useDisplayMode hook allows you to read and control the display mode of your widget. Widgets can be displayed in three modes: inline, fullscreen, or pip (picture-in-picture).
Basic usage
Returns
The hook returns a tuple with two elements:displayMode
inline- The widget is displayed inline within the chatfullscreen- The widget takes up the full screenpip- The widget is displayed in picture-in-picture mode (on mobile, this is coerced to fullscreen)
