LauncherButtonProps

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

A round button that asks to open a chat; the owner holds the open state.

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

Declaration

export interface LauncherButtonProps  {
  readonly className?: string;
  readonly controls?: string;
  readonly expanded?: boolean;
  readonly label?: string;
  readonly onClick: () => void;
}

Members

className

readonly className?: string;

controls

The id of the element it opens.

readonly controls?: string;

expanded

Whether the chat it opens is showing, when the owner wants that announced.

readonly expanded?: boolean;

label

The button's accessible name. Defaults to "Open chat".

readonly label?: string;

onClick

readonly onClick: () => void;