@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
24 lines (21 loc) • 646 B
text/typescript
/**
* Code Connect mapping for MFileUploader
* Links Figma File uploader (ADS2) 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=11973-12085',
{
props: {
hasDragDrop: figma.enum('Has drag & drop', {
False: false,
True: true,
}),
},
example: ({ hasDragDrop }) =>
html`<script setup>
import { MFileUploader } from '@mozaic-ds/vue';
</script>
<MFileUploader :model-value="[]" :has-drag-drop=${hasDragDrop} />`,
},
);