I want to design is
but my actual select option is
how to create this type of select option?
2
It looks like Antd’s Multiselect has a prop called tagRender. You should be able to use Antd’s default tag component and create a wrapper around it with the comma and fixed spacing.
tagRender
<Multiselect tagRender={(props) => { //console.log(props) //for exploration return <div className="wrapper"> <Tag name={props.name}/> , </div> }}
Find className of each element a then edit styles in css file.
Click here to cancel reply.
2
Answers
It looks like Antd’s Multiselect has a prop called
tagRender
. You should be able to use Antd’s default tag component and create a wrapper around it with the comma and fixed spacing.Find className of each element a then edit styles in css file.