From 8eac1907cacaef7ac00e37e6fac1c98dafd75537 Mon Sep 17 00:00:00 2001 From: Eric Olkowski Date: Wed, 9 Sep 2026 14:04:17 -0400 Subject: [PATCH 1/3] chore(MessageBar): built POC demo for slash commands --- .../chatbot/examples/demos/Chatbot.md | 15 + .../examples/demos/ChatbotSlashCommands.tsx | 375 ++++++++++++++++++ 2 files changed, 390 insertions(+) create mode 100644 packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/ChatbotSlashCommands.tsx diff --git a/packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/Chatbot.md b/packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/Chatbot.md index 356927d4..64f8e46a 100644 --- a/packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/Chatbot.md +++ b/packages/module/patternfly-docs/content/extensions/chatbot/examples/demos/Chatbot.md @@ -200,3 +200,18 @@ In this example, file download is implemented with [file-saver](https://www.npmj ```js file="./ChatbotTranscripts.tsx" isFullscreen ``` + +### Slash commands + +This demo adds slash command support to a fullscreen ChatBot. The following lifts are required to wire up this behavior: + +1. **Controlled `MessageBar`:** Pass `value`, `onChange`, and `innerRef` props to `MessageBar` so the consumer owns the input state and has access to the underlying `