Source code
Revision control
Copy as Markdown
Other Tools
import figma, { html } from "@figma/code-connect/html";
figma.connect(
{
props: {
label: figma.string("Label"),
iconSrc: figma.boolean("Show icon", {
}),
description: figma.boolean("Show description", {
true: figma.string("Description"),
}),
disabled: figma.enum("State", {
Disabled: true,
}),
},
example: props =>
html`<moz-box-button
label=${props.label}
description=${props.description}
iconsrc=${props.iconSrc}
disabled=${props.disabled}
></moz-box-button>`,
}
);