Skip to content

Commit ccb4163

Browse files
committed
Erin feedback
1 parent d545a1a commit ccb4163

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ export const MessageWithCustomStructure: FunctionComponent = () => (
5656
/>
5757
<ToolCall titleText="Calling 'more_awesome_tool'" loadingText="Loading 'more_awesome_tool'" isLoading={true} />
5858
<ToolCall titleText="Calling 'even_more_awesome_tool'" loadingText="Loading 'even_more_awesome_tool'" />
59+
<MarkdownContent content={`You can even place a message loading state in the middle of a message:`} />
5960
<MessageLoading loadingWord="Loading something in the middle of a custom structured message" />
60-
<MarkdownContent
61-
content={`You can even place a message loading state in the middle of a message, as seen above.`}
62-
/>
6361
<ResponseActionsGroups>
6462
<ResponseActions
6563
actions={{

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ You can add custom content to specific parts of a `<Message>` via the `extraCont
291291

292292
For more advanced use cases, you can build completely custom message structures by passing children directly to `<Message>`. This approach is useful when you need to customize the order or structure of message elements beyond what the standard props allow.
293293

294-
When creating custom message structures, you must follow an intended composable structure:
294+
When creating custom message structures, you must follow an intended composable structure.
295295

296-
1. **Message content and actions** must be wrapped in `<MessageAndActions>`. This includes, but is not limited to:
296+
1. **Message content and actions:** Wrap in `<MessageAndActions>`. This includes, but is not limited to:
297297

298-
- `<MarkdownContent>` - For rendering markdown or plain text content
298+
- `<MarkdownContent>`: For rendering markdown or plain text content
299299
- `<ErrorMessage>`
300300
- `<MessageLoading>`
301301
- `<MessageInput>`
@@ -308,9 +308,9 @@ When creating custom message structures, you must follow an intended composable
308308
- `<SourcesCard>`
309309
- `<ResponseActionsGroups>` and `<ResponseActions>`
310310

311-
2. **File attachments** must be placed outside `<MessageAndActions>`, wrapped in attachment containers:
312-
- `<MessageAttachmentsContainer>` - Container for all attachments
313-
- `<MessageAttachmentItem>` - Individual attachment wrapper (contains `<FileDetailsLabel>` or other attachment components)
311+
2. **File attachments:** Placed outside `<MessageAndActions>` and wrapped in attachment containers:
312+
- `<MessageAttachmentsContainer>`: Container for all attachments
313+
- `<MessageAttachmentItem>`: Individual attachment wrapper (contains `<FileDetailsLabel>` or other attachment components)
314314

315315
```ts file="./MessageWithCustomStructure.tsx"
316316

0 commit comments

Comments
 (0)