Complete the code to set the main frame's layout direction to vertical.
mainFrame.layoutMode = '[1]'
Setting layoutMode to VERTICAL arranges child elements from top to bottom.
Complete the code to set the spacing between items in the nested auto layout to 12 pixels.
nestedFrame.itemSpacing = [1]itemSpacing with padding.The itemSpacing property controls the space between child elements. Setting it to 12 adds 12 pixels of space.
Fix the error in the code to correctly set the padding of the nested frame to 16 pixels on all sides.
nestedFrame.padding[1] = 16
In Figma plugin API, padding properties use camelCase like paddingTop, so paddingTop is correct. Repeat for paddingBottom, paddingLeft, paddingRight.
Fill both blanks to set the nested frame's layout direction to horizontal and align items to center.
nestedFrame.layoutMode = '[1]' nestedFrame.primaryAxisAlignItems = '[2]'
Setting layoutMode to HORIZONTAL arranges items left to right. primaryAxisAlignItems set to CENTER centers items along the main axis.
Fill all three blanks to create a nested auto layout with vertical direction, 24 pixels spacing, and padding of 16 pixels on all sides.
nestedFrame.layoutMode = '[1]' nestedFrame.itemSpacing = [2] nestedFrame.padding[3] = 16
Set layoutMode to VERTICAL for top-to-bottom layout, itemSpacing to 24 for spacing, and paddingTop to 16 for top padding (repeat for other sides similarly).