@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
34 lines (31 loc) • 952 B
text/typescript
/**
* Code Connect mapping for MSegmentedControl
* Links Figma Segmented control (ADS2) to @mozaic-ds/vue
* Props from figma_get_component (Figma Console MCP) + MSegmentedControl.stories.ts
*/
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-26997',
{
props: {
size: figma.enum('Size', {
S: 's',
M: 'm',
}),
full: figma.enum('Full width', {
True: true,
False: false,
}),
},
example: ({ size, full }) =>
html`<script setup>
import { MSegmentedControl } from '@mozaic-ds/vue';
</script>
<MSegmentedControl
size=${size}
full=${full}
:segments="[{ id: 'label1', label: 'Label' }, { id: 'label2', label: 'Label' }]"
model-value="label1"
></MSegmentedControl>`,
},
);