surevine / govuk-react-jsx

govuk-frontend compatible React components
https://govuk-react-jsx.netlify.app/
MIT License
3 stars 0 forks source link

Looking for example of usage of Input with react-text-mask #96

Closed brightpixels closed 4 years ago

brightpixels commented 4 years ago

Hello, I am looking for an example of govuk-react-jsx input component used with react-text-mask component please. Use case examples is guide use to fill in a credit card number or phone number

andymantell commented 4 years ago

The docs suggest passing a render prop allowing you to specify a custom component:

https://www.npmjs.com/package/react-text-mask#customize-rendered-input-component

Have you tried this yet?

brightpixels commented 4 years ago

I have read this earlier and didn’t think of it as relevant to what I was looking for. Will have a go and report back.

andymantell commented 4 years ago

Closing this for now. Feel free to reopen if there is an issue within govuk-react-jsx