Antd multiselect selected Item color or custom style

拟墨画扇 提交于 2021-01-29 11:03:14

问题


I am using this multi select of antd Antd multiselect

It is working perfectly fine bt i want to make it like that Multiselect Design

Each selected item have specific color.Is this possible with antd multiselect?Antd provides some props like labelInValue but i am confused how to use they have not provided enough detail.


回答1:


You can modify the color of the selected items by using css or less variables link to antd instructions for less variables.

To use css, open the node_modules folder, find antd, open the es folder, open the antd component you're using, open the style folder, and then open the index.js file. There you can find the css elements you can modify. Create a css file, change the color attributes on the css elements, and then connect the css file to your javascript/html multiselect.



来源:https://stackoverflow.com/questions/51468213/antd-multiselect-selected-item-color-or-custom-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!