ChatPopupProps

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

Controlled popup visibility, accessible labels, Escape dismissal policy, and persistent panel content.

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

Declaration

export interface ChatPopupProps  {
  readonly children?: ReactNode;
  readonly className?: string;
  readonly closeLabel?: string;
  readonly closeOnEscape?: boolean;
  readonly launcherLabel?: string;
  readonly onOpenChange: (open: boolean) => void;
  readonly open: boolean;
  readonly title: string;
  readonly toggleShortcut?: string;
}

Members

children

readonly children?: ReactNode;

className

readonly className?: string;

closeLabel

readonly closeLabel?: string;

closeOnEscape

readonly closeOnEscape?: boolean;

launcherLabel

readonly launcherLabel?: string;

onOpenChange

readonly onOpenChange: (open: boolean) => void;

open

readonly open: boolean;

title

readonly title: string;

toggleShortcut

One key, such as k, that requests a toggle with Ctrl or Command from anywhere on the page. Typing in a field outside the popup is left alone. Off unless set.

readonly toggleShortcut?: string;