import figma, { html } from "@figma/code-connect/html"; // Desktop V3 figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=4429-687", { props: { body: figma.string("Body"), heading: figma.boolean("Show heading", { true: figma.string("Heading"), false: undefined, }), image: figma.boolean("Show image", { true: "path/to/image.png", false: undefined, }), imageAlignment: figma.boolean("Show image", { true: figma.enum("Image position", { Left: "start", Right: "end", Bottom: "center", }), false: undefined, }), actions: figma.boolean("Show actions", { true: html` Label `, false: undefined, }), }, example: props => html` ${props.actions} `, } );