Skip to content

Button Width #3122

Answered by loreina
amyodea asked this question in General
Mar 24, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @amyodea,

In code, you can use Button's fullWidth prop like <Button fullWidth></Button> and the width will match its container. This should work across any theme in Paste.

In Figma, it's a bit trickier. Using a Button instance, you'll want to select the Button, Button content ↓, and Content ↓ layers, then set the horizontal sizing from hug contents to fill container.

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amyodea
Comment options

Answer selected by loreina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants