UNPKG

react-instantsearch

Version:
25 lines (24 loc) 1.02 kB
import React from 'react'; import type { ChatToggleButtonClassNames, ChatToggleButtonProps as ChatToggleButtonUiProps } from 'instantsearch-ui-components'; export type ChatTriggerProps = Omit<ChatToggleButtonUiProps, 'open' | 'onClick'> & { /** * CSS classes to add to the widget elements. */ classNames?: Partial<ChatToggleButtonClassNames>; /** * Custom icon component to replace the default sparkles/chevron icons. */ toggleIconComponent?: ChatToggleButtonUiProps['toggleIconComponent']; /** * Callback when the trigger is clicked. */ onClick?: () => void; /** * Whether the button is positioned as a floating action button at the * bottom-right of the viewport. Set to `false` to render an inline button * that flows with surrounding content. * @default true */ floating?: boolean; }; export declare function ChatTrigger({ classNames, toggleIconComponent, onClick, floating, ...props }: ChatTriggerProps): React.JSX.Element;