@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
29 lines (26 loc) • 820 B
text/typescript
/**
* Code Connect mapping for MSidebar
* Links Figma Sidebar (desktop only) (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=11697-6444',
{
props: {
modelValue: figma.enum('is expanded', {
True: true,
False: false,
}),
},
example: ({ modelValue }) =>
html`<script setup>
import { MSidebar } from '@mozaic-ds/vue';
</script>
<MSidebar :model-value=${modelValue}>
<template #header>Header</template>
<template #shortcuts>Shortcuts</template>
<template #nav>Nav items</template>
<template #footer>Footer</template>
</MSidebar>`,
},
);