You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@WillSmithTE Please explain what exactly you want to achieve?
Do you want to add an "icon" property to the <SendButton /> component, or pass custom send icon to the <MessageInput /> component?
I believe it would have to be on the MessageInput, because that uses the SendButton directly. Unless you wanted to open up a sendButtonProps on the MessageInput, and then add the icon property to the SendButton.
I don't mind how the implementation is, but the idea is to change the icon from <FontAwesomeIcon icon={faPaperPlane} /> to whatever we want.
Probably a more flexible approach is to add a prop for a totally custom SendButton, which is then given the disabled and onClick props by MessageInput.
@WillSmithTE Thank you for the clarification. At a glance the last option (custom SendButton) is the best, but but I will take a fresh look at it tomorrow.
Great library, thanks for maintaining it.
Would you consider allowing for a custom SendButton icon passed as a prop?
The text was updated successfully, but these errors were encountered: