Open gtwilliams03 opened 6 years ago
@gtwilliams03 we can make validation of propTypes to be oneOfType([string, node])
in codebase.
cc @newbreedofgeek
Was this ever implemented?
If we do this change then we need to change prop name. It can't be backButtonText.
We can introduce new prop here backButtonNode
and nextButtonNode
. If these two are present then it will have more priority over text.
@jermsam @gtwilliams03 @newbreedofgeek any thoughts on this implementation? I can start with this approach.
It would be nice to allow PropType node as well as a string to allow the insertion of icons, etc., into the button contents (
backButtonText
andnextButtonText
):Right now it throws an error if anything is included except a string: