hc-oss / react-tag-input-component

lightweight react component for tag(s) input
https://codesandbox.io/s/react-tag-input-component-rgf97
MIT License
80 stars 36 forks source link

Spread props to input component #34

Open ivan-cash opened 1 year ago

ivan-cash commented 1 year ago

Hi team, I really like the lib, and I would like to suggest you to spread the props coming from the TagsInput component to the input tag inside. Something like this:

image

Another workaround would be to create an additional prop in TagsInput component named inputProps or similar, in order to add props into input component. This solution would grant to add props like onFocus, autoComplete or another prop that we use with testing purposes.

Thank you all.

harshzalavadiya commented 1 year ago

@ivan-cash good idea, should be easy to implement I will try to do pick it up in upcoming days.

but PRs are always welcome as well :)