Skip to main content
Question

MCP get_design_context does not surface nested component variant props to parent

  • March 7, 2026
  • 1 reply
  • 45 views

IraX

When using get_design_context on a parent component that contains and exposes a nested component instance’s property, the nested component's variant props are not surfaced in the parent's generated props. The nested component is inlined with only a className prop, regardless of what properties the nested component has.

 

Steps to reproduce

  1. Create a component with a boolean variant (e.g., ChildComponent with isActive: true | false)
  2. Create a parent component that nests an instance of ChildComponent
  3. Expose the properties from the nested ChildComponent
  4. Call get_design_context on the parent component set

 

Expected: Parent component props include a way to pass through the nested component's isActive prop, or the inline child function includes its variant props.

 

Actual: The inline ChildComponent function only accepts className. The isActive variant is visible in data-name attributes but not exposed as a prop.

 

1 reply

ksn
Figmate
  • Community Support
  • March 19, 2026

Hey ​@IraX - I’m really sorry it took a while to get back to you, but I checked in with an engineer, and can you give me some info:

 

Can you share what url you’re passing to thru  get_design_context , and the exact output you get?

 

Starting on the surface, want to see if this involves code connected components or is related to design-to-react functionality.