Skip to contents

An drawer displays UI content adjacent to a chat interface, such as a preview, a generated report, or a detail view. Use chat_drawer() to supply its initial content and layout to the drawer argument of chat_ui() or page_chat(). Update the panel later with the other drawer functions.

Usage

chat_drawer(..., title = NULL, width = 400, open = TRUE, resizable = TRUE)

Arguments

...

UI content to display in the drawer.

title

An optional drawer title.

width

The initial drawer width. Positive numbers are converted to pixels; character values must be valid CSS lengths.

open

Whether the drawer is initially visible.

resizable

Whether the drawer can be resized on desktop.

Value

A configuration object for use with chat_ui() or page_chat().

See also

chat_ui() and page_chat() accept this configuration through their drawer argument.

Other chat drawers: chat_drawer_hide(), chat_drawer_show(), chat_drawer_toggle(), chat_drawer_update()