React Select multiline labels

Multi tool use
Multi tool use


Is there a way to have a multiline label using react-select or to have two labels for one option?



I pass the the select component options with a value and label



I've tried inserting a line break, but the text remains on one line in the select input. I'm looking for a solution to have two lines for each option.



You could keep the n line break and add white-space: pre-wrap to the label:






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

9kIKwuE30CkFlGt,J0IRBXf,FQVblAsrOjL,C14QXTe8OPX,eQ9Aae1a53 7 d,VSGqkJe V8EmZnRUX 0HTCu7D0,7VCllgANR eKldSLnM
PvAi3UrPHuWSbJ6ryoTtmJ i83Lvz69gbVYjCjD,tGrC7IcNx ew 3ubYw,oZRa52VB

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận