Home > front end >  Divs in input using ant design
Divs in input using ant design

Time:10-11

I need to create an effect like the one in tags on this site. enter image description here

So I need an input with styled spans/divs inside. The simplest way would be to use .map on an array in state, and separate the elements with a space or ;

But I am also using Ant Design. I was curious if said library has a way of doing it that's built in?

Target design:

enter image description here

CodePudding user response:

Yes, Ant Design has a multi-select component. Take a look at https://ant.design/components/select/

  • Related