React-select: Passing a custom input component as the search component

Created on 25 May 2017  路  3Comments  路  Source: JedWatson/react-select

Hi,

Is it possible to pass a custom input field component for react-select ?

categorquestion

Most helpful comment

@agirton thanx for the info, but what I'm looking for is a way to pass an input component all together. So it seems like I have to find an alternative to get around this issue. Thanx again.

All 3 comments

Hi @AchinthaReemal, we use https://github.com/JedWatson/react-input-autosize, not sure I see value in allowing to use your own. This could greatly change the way the select behaves, which may cause further issues down the road. It also increases our API surface.

Hi @AchinthaReemal I misspoke, we don't allow a custom input, but if you use autosize false. Then you can pass in inputProps to customize. Hope this helps.

@agirton thanx for the info, but what I'm looking for is a way to pass an input component all together. So it seems like I have to find an alternative to get around this issue. Thanx again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunocramos picture brunocramos  路  3Comments

Meesam picture Meesam  路  3Comments

juliensnz picture juliensnz  路  3Comments

pashap picture pashap  路  3Comments

coder-guy22296 picture coder-guy22296  路  3Comments