Skip to main content

Interface: ConnectButtonProps

Defined in: react-connect/src/index.ts:19

Extends​

Properties​

appearance?​

optional appearance?: "light" | "dark"

Defined in: react-connect/src/element.ts:10

light or dark; the visitor's system by default.

Inherited from​

ElementProps.appearance


byline?​

optional byline?: boolean

Defined in: react-connect/src/index.ts:23

Show "by leuria" beside "Connect your AI". Default true.


className?​

optional className?: string

Defined in: react-connect/src/element.ts:12

Position and size only: the elements keep Leuria's colours.

Inherited from​

ElementProps.className


onDisconnect?​

optional onDisconnect?: () => void

Defined in: react-connect/src/index.ts:25

Called after the visitor disconnects this site, e.g. to clear a conversation.

Returns​

void


size?​

optional size?: 2 | 1 | 3

Defined in: react-connect/src/index.ts:21

1: 36px (navigation bars), 2: 48px (default), 3: 56px.


style?​

optional style?: CSSProperties

Defined in: react-connect/src/element.ts:13

Inherited from​

ElementProps.style