Filling a Datatable cell with a component

I would like to know if instead of inputting just the text value of a dropdown option inside a datatable, it’s possible to take this whole component:
with the square around the value and a little X that removes it from the selection, and put this component inside the datatable; Ideally, I would be able to, for example, take those 3 and input all of them at once inside the datatable, and when I want to, just hit the X on one of them to remove from the datatable.
Is it possible to do this? I know you can use dropdowns inside datatable cells, but that’s not enough for the application I’m using.
Putting 1 or more html.button could also work. I wonder if it’s possible?