Skip to content

Objects values as props #312

@Stefenyo

Description

@Stefenyo

from what I'm seeing, if a Figma prop is nested in an object, it doesn't work. So on line 4 in the below example (text: figma.string('Title')) doesn't render.

{
  title: figma.boolean('Has Title', {
    true: {
      tag: 'span',
      text: figma.string('Title')
    },
    false: undefined
  })
}

If It is applied as { true: text: figma.string('Title')}, then it works.

Is there a way around this ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions