I’ve encountered an issue that makes components harder to implement while using slots.
Figma MCP doesn’t return any values for the flex properties, which makes no sense, because you need to manually specify what is already there and is available for other layers and adds more friction to the workflow itself. The annotation property exposing doesn’t work as well for some reason, so the only solution is to describe it using plain text.
Can i get a confirmation that this is an intended logic or bug that will be addressed?
Attaching example of output for slots, along with annotation that has exposed properties below:
export default function TestSlotComp({ className, prop1stSlot2 = null, prop2ndSlot = null }: TestSlotCompProps) {
return (
<div className={className || ""} data-name="test-slot-comp" data-node-id="2989:4635">
<div className="content-stretch flex flex-col gap-[var(--spacing\/0,0px)] items-start min-w-[1440px] p-[var(--spacing\/0,0px)] relative w-[1440px]" data-name="Breakpoint=Default" data-node-id="2989:4636">
<Frame className="bg-white shrink-0 size-[98px]" />
<div className="bg-[var(--surface\/surface,#f4f2ef)] h-[44px] shrink-0 w-[1440px] relative" data-annotations="1st-slot layout props" data-name="1st-slot-2" data-node-id="2989:4638">
{prop1stSlot2 || null}
</div>
<div className="bg-[var(--surface\/surface,#f4f2ef)] h-[44px] shrink-0 w-full relative" data-name="2nd-slot" data-node-id="2989:4639">
{prop2ndSlot || null}
</div>
</div>
</div>
);
}
