ChatSidenavDevtools

Unpublished development API. This package is under development and is not available as a published release.

Adds a footer Devtools button that opens a debug panel docked to the bottom.

import type { ChatSidenavDevtools } from '@threadplane/react/chat';

Declaration

export interface ChatSidenavDevtools  {
  readonly buttonLabel?: string;
  readonly label?: string;
  readonly render: (panel: ChatSidenavDevtoolsPanel) => ReactNode;
  readonly session: ChatSidenavDevtoolsSource;
}

Members

buttonLabel

readonly buttonLabel?: string;

label

readonly label?: string;

render

Renders the panel, typically <ChatDebug {...panel} ... />. It is not called until the button is first pressed, so the application can load @threadplane/react/debug lazily.

readonly render: (panel: ChatSidenavDevtoolsPanel) => ReactNode;

session

The session whose running status lights the button's streaming dot.

readonly session: ChatSidenavDevtoolsSource;