// url=https://www.figma.com/design/3WoKOSGtaSjhUHKldHCXbc/Desktop-Components-3?node-id=3907-19254 // Dropdown import figma from "figma"; const labelInstance = figma.selectedInstance.findInstance("Label"); const labelText = labelInstance.type !== "ERROR" ? labelInstance.getString("Label") : undefined; const description = labelInstance.type !== "ERROR" ? labelInstance.getString("Description") : undefined; const supportPage = labelInstance.type !== "ERROR" ? labelInstance.getBoolean("Show support link", { true: "support-page-endpoint-example", false: undefined, }) : undefined; const iconSrc = labelInstance.type !== "ERROR" ? labelInstance.getBoolean("Show icon", { true: "chrome://example.svg", false: undefined, }) : undefined; const selectInstance = figma.selectedInstance.findInstance("Dropdown / Button"); const value = selectInstance.type !== "ERROR" ? selectInstance.getString("Label") : undefined; const disabled = figma.selectedInstance.getBoolean("Disabled"); export default { id: "moz-select-dropdown-desktop-v3", example: figma.code` Option 1 Option 2 `, };