UNPKG

@mozaic-ds/vue

Version:

Mozaic-Vue is the Vue.js implementation of ADEO Design system

49 lines (46 loc) 1.3 kB
/** * Code Connect mapping for MCombobox * Links Figma _combobox / base to @mozaic-ds/vue */ import figma, { html } from '@figma/code-connect/html'; figma.connect( 'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=19683-17907', { props: { size: figma.enum('Size', { S: 's', 'M (default)': 'm', }), disabled: figma.enum('State', { Disabled: true, Default: false, Hovered: false, Focused: false, 'Read-only': false, }), readonly: figma.enum('State', { 'Read-only': true, Default: false, Hovered: false, Focused: false, Disabled: false, }), isInvalid: figma.enum('Is invalid', { True: true, False: false, }), }, example: ({ size, disabled, readonly, isInvalid }) => html`<script setup> import { MCombobox } from '@mozaic-ds/vue'; </script> <MCombobox id="combobox-id" size=${size} disabled=${disabled} readonly=${readonly} :is-invalid=${isInvalid} :options="[{ label: 'Option 1', value: 'option1' }, { label: 'Option 2', value: 'option2' }]" ></MCombobox>`, }, );