Stroke offset for auto-layout frames

I’d like to be able to offset a stroke on a frame where auto-layout is applied. For example, to create a button component for which the focussed state has a stroke that is offset 1px to the outside (see picture below).

The workaround now is to nest a frame 1px to the inside of another frame which has a stroke applied to it, but this means the main button component will be 2px larger than needed. If that makes sense. I tried to illustrate it in the picture below.

1 Like

I would say, stroke offset for all objects where stroke is applicable. Why restrict to auto-layout frames?

2 Likes