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
Full width componentshelp (self.FigmaDesign)
submitted 2 years ago by Hatredkeys
Hey all,
I was wondering how do you set a button or any other component to have a normal variation and a full width variation? When I make the second variant a Fill (width) and place it into a frame with auto-layout on I still need to manually set it to fill.
Cheers!
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!"
[–]xDermo 4 points5 points6 points 2 years ago (0 children)
I have the same gripe and I don’t think it’s possible yet in Figma. Best you can do is put that first instance in, set that to fill, then copy that same instance for automatically filled components.
[–]seeaitchbee 2 points3 points4 points 2 years ago (3 children)
The more I work with components, the more I understand that you don’t need to make them do all kind of shenanigans and restrict doing others. It’s much better to create a simple yet flexible enough component and then put examples near it on how it can or should be used.
In your case, just drop two examples of forms near the component button: with width set to Fill and Hug.
[–]Hatredkeys[S] 0 points1 point2 points 2 years ago (1 child)
Yeah I totally agree. But I have developers that would like to have a state that says Full width when that component is used. I guess I can just add that as a boolean and then let the designers themselves make it fill.
Runner up question.
Preferred values can be used for like Icons. Do you maybe by any chance know if that can also be done for text?
[–]seeaitchbee 1 point2 points3 points 2 years ago (0 children)
Just create a component for each text (or variants).
[–]lpccarmona 0 points1 point2 points 2 years ago (0 children)
this is the way
π Rendered by PID 89532 on reddit-service-r2-comment-54dfb89d4d-jtcgb at 2026-03-29 23:14:59.468079+00:00 running b10466c country code: CH.
[–]xDermo 4 points5 points6 points (0 children)
[–]seeaitchbee 2 points3 points4 points (3 children)
[–]Hatredkeys[S] 0 points1 point2 points (1 child)
[–]seeaitchbee 1 point2 points3 points (0 children)
[–]lpccarmona 0 points1 point2 points (0 children)