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

Components in options labels? #666

Closed
antonsivogrivov opened this issue Dec 14, 2015 · 3 comments
Closed

Components in options labels? #666

antonsivogrivov opened this issue Dec 14, 2015 · 3 comments

Comments

@antonsivogrivov
Copy link

Hi!

Is it possible to do something like this?

var options = [
{label: < Component / >, value: 1},
...
];

@jprichardson
Copy link

Yes, see examples. See docs configuration, specifically optionComponent.

@ahstro
Copy link

ahstro commented Dec 17, 2015

I'm having trouble with this and multi though. Adding one option is fine, but any more than that will refuse to render for whatever reason.

Edit: Worth noting that I'm using the latest release

@jossmac
Copy link
Collaborator

jossmac commented Mar 17, 2020

Version 1 of react-select is no longer supported.

In the best interest of the community we've decided to spend the time we have available on the latest version.

We apologise for any inconvenience.

Please see:

  1. v1 to v2 upgrade guide
  2. v1 documentation and examples

@jossmac jossmac closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants