Skip to content

Code-only props container leaks into anatomy and variant elements #67

@nathanacurtis

Description

@nathanacurtis

Problem

When a component uses a "code-only props" container (a Figma layer that holds props meant only for code, not for design), the props inside it are correctly extracted, but the container itself and its children still appear in the anatomy and variant output. This adds noise to the spec — the container is an implementation detail that should be invisible in the final output.

Solution

Fully exclude the code-only props container and its children from anatomy and variant element output. The props extraction already works correctly; the container just needs to be stripped from the remaining output sections.

Acceptance criteria

  • Code-only props container does not appear in anatomy output
  • Children of the code-only props container do not appear in anatomy output
  • Code-only props container and children do not appear in variant elements
  • Props extracted from the container continue to work correctly

Implementation details are tracked internally.

Metadata

Metadata

Assignees

Labels

pluginFigma plugin

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions