@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
29 lines (26 loc) • 758 B
text/typescript
/**
* Code Connect mapping for MLinearProgressbarPercentage
* Links Figma Linear progress bar (Percentage) (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=5-13902',
{
props: {
value: figma.enum('Completion', {
'0%': 0,
'25%': 25,
'50%': 50,
'75%': 75,
'100%': 100,
}),
},
example: ({ value }) =>
html`<script setup>
import { MLinearProgressbarPercentage } from '@mozaic-ds/vue';
</script>
<MLinearProgressbarPercentage
:value=${value}
></MLinearProgressbarPercentage>`,
},
);