Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search component doesn't accept iconPosition prop #1628

Closed
maciej-gurban opened this issue Apr 25, 2017 · 2 comments
Closed

Search component doesn't accept iconPosition prop #1628

maciej-gurban opened this issue Apr 25, 2017 · 2 comments
Labels

Comments

@maciej-gurban
Copy link

maciej-gurban commented Apr 25, 2017

While most of the props are spread onto Input component, including being able to pass a custom Icon - all of these making Search component very extensible, it doesn't seem to be possible to change the positioning of icon to appear on the left side instead of the right.

Is that something that could be supported? Or is there any other way to achieve that?

@layershifter
Copy link
Member

Search component fully supports Input shorthand:

<Search input={{ icon: 'user', iconPosition: 'left' }} />

_848

<Search input={{ icon: 'user', iconPosition: 'right' }} />

_847

However, it will be awesome to get this in docs.

@levithomason
Copy link
Member

I very much agree with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants