Very minor typo in code component registration docs

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)

Read documentation to understand how to register new components.
There’s a typo in the codegen code where there’s a missing comma after the “elevation” prop and before the “config” prop.

elevation: {
      type: 'choice',
      options: ['high', 'medium', 'flat']
    }
    
    // Some props can take an arbitrary JSON object
    config: 'object',

should be

elevation: {
      type: 'choice',
      options: ['high', 'medium', 'flat']
    },
    
    // Some props can take an arbitrary JSON object
    config: 'object',

What are the reproduction steps?

Visit Registering your code components | Learn Plasmic
If not enabled already, select “Codegen” in the code component in the first section named “Component Registration”, after the text “For example,”. Read the code and notice the missing comma.

Relevant links:

1 Like

Hi @carlos_guzman,

Thanks for the feedback and identifying such a nuanced issue. We will fix it accordingly.

1 Like