import figma, { html } from "@figma/code-connect/html"; figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=479-6030&m=dev", { props: { label: figma.string("Label"), iconSrc: figma.boolean("Show icon", { true: "chrome://example.svg", }), description: figma.boolean("Show description", { true: figma.string("Description"), }), layout: figma.enum("Type", { "Large icon": "large-icon", }), startActions: figma.enum("Type", { "Actions preset": html``, "Actions slots": html``, }), endActions: figma.enum("Type", { "Actions preset": html``, "Actions slots": html``, }), }, example: props => html` ${props.startActions}${props.endActions} `, } ); figma.connect( "https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=479-6030&m=dev", { variant: { Type: "Slot" }, example: () => html` You can put whatever you want in here! Use your imagination! (Just don't pass other props as they won't work/get overridden by the slot) `, } );
You can put whatever you want in here! Use your imagination! (Just don't pass other props as they won't work/get overridden by the slot)