Source code

Revision control

Copy as Markdown

Other Tools

// Nova Components - Page nav button
import figma from "figma";
const label = figma.selectedInstance.getString("Label");
const iconSrc = figma.selectedInstance.getBoolean("Show icon", {
});
const selected = figma.selectedInstance.getBoolean("Selected");
export default {
id: "moz-page-nav-button",
example: figma.code`
<moz-page-nav-button ${iconSrc ? `iconsrc="${iconSrc}"` : ""} ${selected ? "selected" : ""}>
${label}
</moz-page-nav-button>
`,
};