How do I pass options to preview images in select. I have country select and I would like to preview country flags. I don't know how to pass the "options" object in this case.
var countries =
[
{value: 'me', label: 'Montenegro'},
{value:'rs',label: 'Serbia' }
];
<Select name={"nationality_" + passenger.passengerId}
value={passenger.nationality}
options={countries}/>
I think you're wanting your select to behave like last but one (Custom Placeholder, Option, Value, and Arrow Components) in this demo. Click here to find out the way they've designed their ones for demo