Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom container along with <MessageList> for custom user forms #125

Open
sclea opened this issue Aug 21, 2023 · 2 comments
Open

Custom container along with <MessageList> for custom user forms #125

sclea opened this issue Aug 21, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@sclea
Copy link

sclea commented Aug 21, 2023

Hey!

I'm making website chat widget and trying to place a fixed div with input field for user name in the between and , like this:

<ConversationHeader>
	...
</ConversationHeader>

<div className='my-custom-form-container'>
	<input type='text' placeholder="Your name..." />
</div>

<MessageList>
	...
<MessageList>

The idea is that input will be visible until user submit his name. Would you suggest how this can achieved?

Probably it would be nice to have a possibility to add custom container inside along with and whatever. Now React complains on "... is not a valid child...".

@supersnager
Copy link
Contributor

@sclea Can you place the input inside the <MessageList />?
Here is an example: https://chatscope.io/storybook/react/?path=/docs/components-messagelist--custom-content

@supersnager supersnager added the question Further information is requested label Aug 21, 2023
@sclea
Copy link
Author

sclea commented Aug 21, 2023

Thank you, I meant slightly different: fixed custom content AND messageList simultaneously, like this:

image

(It's just a mock made with DevTools.)

@supersnager supersnager added the enhancement New feature or request label Sep 27, 2023
@supersnager supersnager self-assigned this Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants