diff --git a/packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/UI/ChatbotModal.tsx b/packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/UI/ChatbotModal.tsx index 0218efdb..9769a8fc 100644 --- a/packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/UI/ChatbotModal.tsx +++ b/packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/UI/ChatbotModal.tsx @@ -1,10 +1,11 @@ import React from 'react'; -import { Button, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core'; +import { Button, FormGroup, ModalBody, ModalFooter, ModalHeader, Radio } from '@patternfly/react-core'; import { ChatbotModal } from '@patternfly/virtual-assistant/dist/dynamic/ChatbotModal'; -import { ChatbotDisplayMode } from '@patternfly/virtual-assistant/dist/dynamic/Chatbot'; +import Chatbot, { ChatbotDisplayMode } from '@patternfly/virtual-assistant/dist/dynamic/Chatbot'; export const ChatbotModalExample: React.FunctionComponent = () => { const [isModalOpen, setIsModalOpen] = React.useState(false); + const [displayMode, setDisplayMode] = React.useState(ChatbotDisplayMode.default); const handleModalToggle = (_event: React.MouseEvent | MouseEvent | KeyboardEvent) => { setIsModalOpen(!isModalOpen); @@ -12,10 +13,50 @@ export const ChatbotModalExample: React.FunctionComponent = () => { return ( <> - +
+ + setDisplayMode(ChatbotDisplayMode.default)} + name="basic-inline-radio" + label="Default" + id="default" + /> + setDisplayMode(ChatbotDisplayMode.docked)} + name="basic-inline-radio" + label="Docked" + id="docked" + /> + setDisplayMode(ChatbotDisplayMode.fullscreen)} + name="basic-inline-radio" + label="Fullscreen" + id="fullscreen" + /> + setDisplayMode(ChatbotDisplayMode.embedded)} + name="basic-inline-radio" + label="Embedded" + id="embedded" + /> + + +
+