Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FunctionComponent } from 'react';
import Message from '@patternfly/chatbot/dist/dynamic/Message';
import patternflyAvatar from './patternfly_avatar.jpg';
import { CopyIcon, WrenchIcon } from '@patternfly/react-icons';

export const MessageWithQuickResponsesExample: FunctionComponent = () => (
<>
Expand Down Expand Up @@ -74,5 +75,15 @@ export const MessageWithQuickResponsesExample: FunctionComponent = () => (
]}
isCompact
/>
<Message
name="Bot"
role="bot"
avatar={patternflyAvatar}
content="Example with icons"
quickResponses={[
{ id: '1', content: 'Update your settings', onClick: () => alert('Clicked yes'), icon: <WrenchIcon /> },
{ id: '2', content: 'Copy', onClick: () => alert('Clicked no'), icon: <CopyIcon /> }
]}
/>
</>
);
Loading