maticzav / ink-table

📐A table component for Ink.
184 stars 32 forks source link

render nested component into cell #281

Open lougreenwood opened 4 months ago

lougreenwood commented 4 months ago

Hi, I'm struggling to render a nested component (<Badge />) into a cell. It seems that a cell should contain only a string or number.

I took a look at the example for using a custom cell, but that seemed to fail. Also it seems that using a custom cell means that I need to make a generic cell components which will be used for all cells, rather than just using a custom cell for an individual column?

Maybe I'm thinking about this from the wrong angle?

Thanks!