Complete the code to set the frame direction to horizontal in Figma.
frame.layoutMode = '[1]'
Setting layoutMode to HORIZONTAL arranges child elements side by side.
Complete the code to set the frame direction to vertical in Figma.
frame.layoutMode = '[1]'
Setting layoutMode to VERTICAL arranges child elements stacked top to bottom.
Fix the error in the code to correctly set the frame direction to vertical.
frame.layoutMode = [1]The value for layoutMode must be a string, so it needs quotes around 'VERTICAL'.
Fill both blanks to set the frame direction to horizontal and enable item spacing.
frame.layoutMode = [1]; frame.itemSpacing = [2];
Set layoutMode to 'HORIZONTAL' (string) and itemSpacing to 10 pixels.
Fill all three blanks to set the frame direction to vertical, enable item spacing, and set padding to 20.
frame.layoutMode = [1]; frame.itemSpacing = [2]; frame.paddingTop = [3];
Set layoutMode to 'VERTICAL', itemSpacing to 15, and paddingTop to 20 pixels.