import figma, { html } from "@figma/code-connect/html"; // Desktop Components v3 (newest) figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=478-7070", { props: { items: figma.children("*"), }, example: props => html` ${props.items} `, } ); figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=478-6518", { props: { label: figma.string("Label"), iconSrc: figma.boolean("Show icon", { true: "chrome://example.svg", }), disabled: figma.enum("State", { Disabled: true }), badged: figma.boolean("Show badge"), submenu: figma.boolean("Show submenu"), rule: figma.boolean("Show separator", { true: html`
`, }), }, example: props => html` ${props.label} ${props.rule}`, } );