Enhance Message
Component to Support ReactNode in Content via extraContent
Prop
#418
Labels
PF6
Applies to only the PF6 version
Currently, the content prop in the
Message
component only accepts strings, limiting the flexibility for rendering dynamic or custom content. I propose adding anextraContent
prop that allows consumers to inject custom React components at specific locations within the message.Message component - https://github.com/patternfly/chatbot/blob/main/packages/module/src/Message/Message.tsx
Proposed Solution:
Introduce a new extraContent prop with the following structure:
Benefits:
The text was updated successfully, but these errors were encountered: