@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
31 lines (28 loc) • 794 B
text/typescript
/**
* Code Connect mapping for MLoader
* Links Figma Loader 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=5-14423',
{
props: {
appearance: figma.enum('Appearance', {
Standard: 'standard',
Accent: 'accent',
Inverse: 'inverse',
}),
size: figma.enum('Size', {
'XS (20px)': 'xs',
'S (24px)': 's',
'M (32px)': 'm',
'L (64px)': 'l',
}),
},
example: ({ appearance, size }) =>
html`<script setup>
import { MLoader } from '@mozaic-ds/vue';
</script>
<MLoader appearance=${appearance} size=${size}></MLoader>`,
},
);