chat-ui-kit-react icon indicating copy to clipboard operation
chat-ui-kit-react copied to clipboard

Access to ref and properties of the contenteditable div in the MessageInput

Open supersnager opened this issue 3 years ago • 1 comments

Sometimes we need to set the properties of the inner contenteditale div in MessageInput. For example to set tabIndex, aria-* attributes, or get a reference to manipulate the content directly.

Now this is only possible using querySelector, but this is not the React way.

So we need to add a new property (eg. inputProps) to the <MessageInput /> component to enable passing properties directly to the inner div.

Related: #93, #94

supersnager avatar Apr 12 '23 07:04 supersnager

It would be great to also be able to add them to other elements, such as the send button (i.e. aria label)

aledeloss avatar May 19 '23 04:05 aledeloss