Skip to main content
Question

MCP get_design_context does not surface nested component variant props to parent

  • March 7, 2026
  • 0 replies
  • 17 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.