Creates a secondary page for page_chat() in the same style as
bslib::nav_panel() and bslib::page_navbar(). When users navigate to the
panel, the chat remains mounted on the home page so its conversation and UI
state persist.
Usage
chat_nav_panel(
title,
...,
value = NULL,
icon = NULL,
sidebar = FALSE,
toolbar = NULL,
content_width = "min(680px, 100%)"
)Arguments
- title
The panel title.
- ...
UI content to display when the panel is active.
- value
An optional unique navigation value. Defaults to
title. The value"__home__"is reserved for the main chat page.- icon
An optional icon to display with the title.
Whether to use the default sidebar (
TRUE), no page-specific sidebar (FALSE), or achat_sidebar()orbslib::sidebar()configuration. Achat_sidebar()withhistory = NULLdefaults toFALSEhere.- toolbar
NULL(the default) for no page-scoped toolbar, or UI content for a page-specific toolbar. Usebslib::toolbar()to group toolbar controls.- content_width
Maximum panel-content width. Content is centered and receives responsive inline padding. Use exactly
"100%","100vw", or"100dvw"for full-bleed content without component-provided padding.
Value
A configuration object for use with page_chat().