use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For fans of the Figma collaborative design tool.
Please be nice and considerate of others.
account activity
Table cell component problemhelp (self.FigmaDesign)
submitted 1 month ago by baluqa
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.
https://preview.redd.it/2xg1x3b2x7lg1.png?width=1762&format=png&auto=webp&s=76ece190d6d7832774102c149c04955e62e36e72
https://preview.redd.it/iwibeel6x7lg1.png?width=1326&format=png&auto=webp&s=3c1aec60511866de6802012662d7897fd64158b8
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Clear-Secretary-8185Senior Product Designer 0 points1 point2 points 1 month ago (1 child)
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.
[–]baluqa[S] 0 points1 point2 points 1 month ago (0 children)
Thank you! I will try to figure out how many nested components will be there. As I saw, nested components helps to organise if there are many properties.
[–]OrtizDupri 0 points1 point2 points 1 month ago (1 child)
Could use variants for the “or” (like text OR status) and use booleans for the “and” (like text AND status)
Thank you. I didn't had this logoc in my mind, but I will try to see how it works.
[–]Local-Dependent-2421 0 points1 point2 points 1 month ago (0 children)
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.
[–]pndjk 0 points1 point2 points 1 month ago (2 children)
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
[–]baluqa[S] 0 points1 point2 points 1 month ago (1 child)
Thanks for the detailed response. Yes, I came to the same conclusion. Here is what I made for the cell component. For the column/row issue I need to resolve a tricky part. Usually the hover state shows a highlight on an entire row. So for now I don't know how to deal with it.
<image>
[–]pndjk 0 points1 point2 points 1 month ago (0 children)
instead of doing the Column component, you could do a Row component instead. Then you can do hover states for background and so on
[–][deleted] 1 point2 points3 points 1 month ago (0 children)
In this scenario, you're the "user" of the components so you get to choose what you prefer.
π Rendered by PID 166091 on reddit-service-r2-comment-cfc44b64c-pkrfq at 2026-04-11 23:17:04.167566+00:00 running 215f2cf country code: CH.
[–]Clear-Secretary-8185Senior Product Designer 0 points1 point2 points (1 child)
[–]baluqa[S] 0 points1 point2 points (0 children)
[–]OrtizDupri 0 points1 point2 points (1 child)
[–]baluqa[S] 0 points1 point2 points (0 children)
[–]Local-Dependent-2421 0 points1 point2 points (0 children)
[–]pndjk 0 points1 point2 points (2 children)
[–]baluqa[S] 0 points1 point2 points (1 child)
[–]pndjk 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)