import figma, { html } from "@figma/code-connect/html"; // Desktop V3 (newest) figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=3907-17659", { props: { labelProps: figma.nestedProps("Label", { description: figma.boolean("Show description", { true: figma.string("Description"), }), label: figma.string("Label"), supportPage: figma.boolean("Show support link", { true: "sumo-slug", }), iconSrc: figma.boolean("Show icon", { true: "chrome://example.svg", }), }), toggleProps: figma.nestedProps("Toggle switch", { pressed: figma.boolean("Checked"), }), disabled: figma.boolean("Disabled"), }, example: props => html` `, } ); // Desktop Components (deprecated) figma.connect( "https://www.figma.com/design/2ruSnPauajQGprFy6K333u/Desktop-Components?node-id=801-7224", { props: { description: figma.boolean("Description", { true: figma.textContent("✏️ Description"), }), disabled: figma.boolean("Disabled"), label: figma.textContent("✏️ Label"), toggleProps: figma.nestedProps("⚠️ Toggle Input", { pressed: figma.boolean("Switch"), }), }, example: props => html``, } );