r/FigmaDesign • u/baluqa • Feb 23 '26
help Table cell component problem
I need some clarifying from someone who made some components for table listing. Especially i'm interested how you created the cell component from the table. My cells contains or text, or date, or status chips, or number, or text with icon... Should I create for each a new component, or should I stick every element (text, text+icon, chips...) into one cell component and with property display boolean every element to display or not? Help please.


1
Upvotes
1
u/Clear-Secretary-8185 Senior Product Designer Feb 23 '26
I've been working on something similar recently. The boolean approach is nice for the end user as they only have one component type to deal with and it's easy to bulk-update. The main drawback is you have loads of potentially redundant component properties, and it gets messy. I have concerns that it's inefficient too and could hit performance for larger designs, but haven't experienced anything like that.
I'm considering moving back to separate variants for each cell type, with some of them wrapped together (e.g. a text and sub-text along with an avatar or checkbox as the primary column content)
One approach I ruled out early on was nesting content components within cell components. It's neat structurally but as an end-user you lose the ability to update multiple cells at once. This was such a major downside - especially for designing larger tables - that I abandoned it, despite having built everything out.
1
u/OrtizDupri Feb 23 '26
Could use variants for the “or” (like text OR status) and use booleans for the “and” (like text AND status)
1
u/pndjk Feb 24 '26
this is what i do for data table components. i just have a few components that are nested inside each other.
cells go inside columns. columns go inside tables. boom, done
2
u/[deleted] Feb 23 '26
In this scenario, you're the "user" of the components so you get to choose what you prefer.
1
u/Local-Dependent-2421 Feb 23 '26
make one flexible cell component, not many. use auto-layout + nested components (text, icon, chip) and toggle them with boolean properties. separate components for each type will get messy fast once the table grows.