Skip to content

Commit

Permalink
Chat customisation options update (#112)
Browse files Browse the repository at this point in the history
* Chat customisation option update

* De-lint
  • Loading branch information
jordrake authored Oct 17, 2024
1 parent 1c9e1db commit 9009019
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions _snippets/chat/customization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@
Plain.init({
appId: '<YOUR_CHAT_APP_ID>',

// Hides the launcher, you can manually show it by calling `Plain.open()` (default: false)
// Optional. Hides the launcher, you can manually show it by calling `Plain.open()` (default: false)
hideLauncher: false,

// The title of the chat window shown on the Welcome screen
// Optional. The title of the chat window shown on the Welcome screen
title: 'Chat with us',

// A collection of links shown on the Welcome screen
// Optional. A collection of links shown on the Welcome screen
links: [
{
icon: 'book', // Optional, we also support 'discord' and 'slack' as icons
text: 'View our docs',
url: 'https://www.plain.com/docs',
},
],

// The color of your brand which will be used in parts of the Chat as well as the launcher color
// Optional. The color of your brand which will be used in parts of the Chat as well as the launcher color
brandColor: '#000000',

// Optional. The entry point of the Chat, is either 'default' or 'chat'
// 'chat' will open the last conversation the user had. (default: 'default')
entryPoint: 'default',

// Optional. The color scheme of the Chat, is either 'auto', 'light', or 'dark'.
// 'auto' uses the user's browser preference to decide between light and dark mode (default: 'auto')
theme: 'light',
});
```

0 comments on commit 9009019

Please sign in to comment.