@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
32 lines (29 loc) • 821 B
text/typescript
/**
* Code Connect mapping for MStatusDot
* Links Figma Status dot (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=6-21635',
{
props: {
status: figma.enum('Status', {
Information: 'info',
Success: 'success',
Warning: 'warning',
Error: 'error',
Neutral: 'neutral',
}),
size: figma.enum('Size', {
'S (4px)': 's',
'M (8px)': 'm',
'L (16px)': 'l',
}),
},
example: ({ status, size }) =>
html`<script setup>
import { MStatusDot } from '@mozaic-ds/vue';
</script>
<MStatusDot status=${status} size=${size}></MStatusDot>`,
},
);