Hello! This is my first time using the Code Connect feature. We have a project built with Vue 3 and a design system. I'm trying to map our Button component, but getting the following errors:
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "label" does not exist on the Figma component
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "status" does not exist on the Figma component
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "shape" does not exist on the Figma component
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "size" does not exist on the Figma component
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "variant" does not exist on the Figma component
Validation failed for undefined (https://www.figma.com/design{MyLink}): The property "color" does not exist on the Figma component
I don't know, maybe I'm missing something.
{
"codeConnect": {
"parser": "html"
}
}
import figma, { html } from '@figma/code-connect/html'
figma.connect(
'https://www.figma.com/design{MyLink}',
{
props: {
label: figma.string('label'),
disabled: figma.enum('status', {
disabled: true,
}),
shape: figma.enum('shape', {
none: 'none',
square: 'square',
pill: 'pill',
}),
size: figma.enum('size', {
xs: 'xs',
sm: 'sm',
md: 'md',
lg: 'lg',
}),
variant: figma.enum('variant', {
default: 'default',
outlined: 'outlined',
text: 'text',
ghost: 'ghost',
}),
color: figma.enum('color', {
default: 'default',
primary: 'primary',
secondary: 'secondary',
info: 'info',
success: 'success',
warning: 'warning',
error: 'error',
}),
},
example: (props) => html`\
<Button
size="md"
shape="none"
:disabled=${props.disabled}
:color=${props.color}
:variant=${props.variant}
>${props.label}</Button>`,
}
)
If I get the error right it seems the link is incorrect, but I'm not sure. Please, point me in the right direction.
Hello! This is my first time using the Code Connect feature. We have a project built with Vue 3 and a design system. I'm trying to map our
Buttoncomponent, but getting the following errors:I don't know, maybe I'm missing something.
@figma/code-connectinstalled to dev dependencies of the projecthtmlcomponentsfigma.config.jsonis addedIf I get the error right it seems the link is incorrect, but I'm not sure. Please, point me in the right direction.