Skip to content

Commit cbf3d96

Browse files
committed
Updated examples
1 parent 62b26d1 commit cbf3d96

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages/BotMessage.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,13 @@ _Italic text, formatted with single underscores_
319319
hasRoundAvatar={false}
320320
/>
321321
<Message name="Bot" role="bot" content="This is a message from a bot with no avatar." />
322+
<Message
323+
name="Bot"
324+
role="bot"
325+
avatar={patternflyAvatar}
326+
isMetadataVisible={false}
327+
content="This is a message from a bot with metadata not visible."
328+
/>
322329
<Select
323330
id="single-select"
324331
isOpen={isOpen}

packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages/UserMessage.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@ _Italic text, formatted with single underscores_
334334
avatarProps={{ isBordered: true }}
335335
/>
336336
<Message name="User" role="user" content="This is a user message with no avatar" />
337+
<Message
338+
name="User"
339+
role="user"
340+
content="This is a user message with metadata not visible."
341+
avatar={userAvatar}
342+
isMetadataVisible={false}
343+
/>
337344
<Message
338345
name="User"
339346
role="user"
@@ -345,6 +352,13 @@ _Italic text, formatted with single underscores_
345352
avatar={userAvatar}
346353
inputRef={messageInputRef}
347354
/>
355+
<Message
356+
name="User"
357+
role="user"
358+
avatar={userAvatar}
359+
alignment="end"
360+
content="This is a user message that is aligned at the end of the message container."
361+
/>
348362
<Select
349363
id="single-select"
350364
isOpen={isOpen}

0 commit comments

Comments
 (0)