Variant box sizing

i created a variant of a component. the text of the variant is not the same with the text of the component. i can’t change the dimensions of the variant. it still keeps the main component’s dimensions. is there a way to fix it? (when i change the dimensions, those of the variant change as well)
thank you.

You can try two ways:

  1. Set the component and the variants’ frame to auto-layout and use Hug for the horizontal resizing so they always follow the size of their contents.

  2. Control+click and drag the boundaries (purple rectangle around the variant) to resize them manually.

thank you very much. it helped me a lot.