Skip to content

Commit 743d0b9

Browse files
committed
Updated example verbiage
1 parent 9be5f6a commit 743d0b9

File tree

1 file changed

+6
-9
lines changed
  • packages/module/patternfly-docs/content/extensions/chatbot/examples/Messages

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,14 @@ When `persistActionSelection` is `true`:
124124

125125
### Multiple action groups
126126

127-
You can display multiple groups of response actions by passing an array of action group objects to the `actions` prop. This allows you to organize related actions together and apply different persistence settings to each group.
127+
You can display multiple groups of response actions by passing an array of objects to the `actions` prop. This allows you to separate groups of actions, such as feedback actions (thumbs up/down) and utility actions (copy, download, and regenerate), and have different selection behaviors for each group.
128128

129-
When using multiple action groups:
129+
When passing an array of objects to `actions`, you have two options depending on the level of flexibility you may need:
130130

131-
- Pass an array of objects to `actions`, where each object contains:
132-
- `actions`: An object containing the actions for that group (same format as single action object)
133-
- `shouldSelectionPersist` (optional): A boolean to control whether selections persist for this specific group
134-
- Each group renders as a separate `<ResponseActions>` component wrapped in a PatternFly `<Flex>` layout component.
135-
- All action groups will render inline on the same row with consistent spacing.
136-
137-
This is useful when you want to separate feedback actions (like thumbs up/down) from utility actions (like copy, download, regenerate) and have different selection behaviors for each group.
131+
- Pass an array of objects where each object contains:
132+
- `actions`: An object containing the actions for that group (the same format as a single action object)
133+
- `persistActionSelection` (optional): A boolean to control whether selections persists for this specific group
134+
- Pass an array of actions objects (the same format as a single action object), and optionally the `persistActionSelection` property to apply to all groups.
138135

139136
```js file="./MessageWithMultipleActionGroups.tsx"
140137

0 commit comments

Comments
 (0)