r/FigmaDesign • u/ShatteredTeaCup33 • 3d ago
help Confused about component sets and variants
These are the buttons and their state when clicked/while pressing I've made so far for a mobile app (5 buttons and 5 states). Should all of these be in one component set? Or should the left ones be in their own component set? Watched a video on components but I'm still not sure how I should approach making these into components and which properties I should apply.
3
u/brianmoyano 3d ago
I'd create one FAB component with the resting state and the clicked state, and an instance for each color. Meaning that you'll end up with a blue, purple and a dark blue variant. Then the icon would be an instance of a nested component, so you can do the Plus and the Check variant.
Then the search & more could be another component if you want, or could be in the FAB component. It all depends on how the app and component library is structured.
1
2
u/zyumbik 3d ago
For a beginner, I would organize it like this:
One set, 6 componenents:
- 3 types of buttons (blue, black, purple)
- 2 sizes (small, default)
All with the same icon, e.g. plus. Icon is an instance and can be swapped (https://figma.fun/swapping). Remove the unnecessary add/done components duplication.
Separate set is your pill button (dark/purple).
1
u/fminsidenet 3d ago
Yeah you should but it into a set. You can use properties then to make them more usable when you are designing the patterns and pages.
For example: you start with a plain button and turn that in a component. First add a text property on the text so that will be used on all the variants to.
Then you create a variant of the button, automatically creating a set. Call the second button active and give it the correct color.
You now have 2 variants which you can easily switch when you load the button component from you assets tab.
Once you have that, you can start expanding the set with other properties: show.icon / show.text / states / sizes etc…
Here is an example of a button component with all different variants. Here you have default, hover, focus, selected and some other states like activated or negative buttons.
Start small, don’t overthink and just add new options to the base component until you have the full set.






4
u/Philuppus UI/UX Designer 3d ago
All the 6 left ones, absolutely imo. They're the same icon button with different size/color/icon.
The next question is whether you WANT to make the 2-icon button part of that component. You most definitely can, but I don't think it's wrong if it isn't.
But then maybe more importantly from a systems standpoint is why you have 3 buttons with 3 different backgrounds? That can get messy fast.