skip to Main Content

Css – react-select styles on select box

I am using this tailwindcss and i want to use the same css on the react-select Select tag. className="block w-full px-3 py-2 rounded-md border border-gray-300 text-gray-700 focus:ring-indigo-500 focus:border-indigo-500" This react-select Select tag is working (I am using version 5.8.0): <Select…

VIEW QUESTION

Reactjs – react-select I want to display and image in the option. But when I select that option, I want the control to display only the text part of that option

this is the options and formatOptionLabel function const brandOptions = films.map((film) => ({ value: film.brand, label: film.brand, })) const formatOptionLabel = ({ value, label, isSelected }) => ( <div style={{ display: 'flex', alignItems: 'center' }}> {isSelected ? null : (…

VIEW QUESTION
Back To Top
Search