Skip to content

Commit 6a69677

Browse files
authored
Merge pull request #454 from rebeccaalpert/drawer
feat(ChatBot): Add drawer display mode
2 parents 4939fb9 + 8617679 commit 6a69677

File tree

13 files changed

+531
-12
lines changed

13 files changed

+531
-12
lines changed

packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/Chatbot.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ This demo displays an embedded ChatBot. Embedded ChatBots are meant to be placed
108108

109109
```
110110

111+
### Inline drawer ChatBot
112+
113+
This demo displays a ChatBot in a static, inline drawer. This demo includes:
114+
115+
1. An empty [PatternFly page](/components/page) with a sidebar and masthead.
116+
2. A [basic ChatBot](#basic-chatbot), placed beside the page content. It does not overlay the page content, cannot be minimized, and does not allow you to change the display mode by default.
117+
118+
```js file="./ChatbotInDrawer.tsx" isFullscreen
119+
120+
```
121+
111122
### Comparing ChatBots
112123

113124
To let users compare how different ChatBots respond to the same prompt, you can add multiple ChatBots within the same window. The following demo illustrates a comparison view pattern that allows users to toggle between different conversations in a single ChatBot window.

0 commit comments

Comments
 (0)