@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
31 lines (28 loc) • 991 B
text/typescript
/**
* Code Connect mapping for MActionListbox
* Links Figma Action listbox (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-29046',
{
props: {},
example: () =>
html`<script setup>
import { MActionListbox, MButton } from '@mozaic-ds/vue';
import { Copy20, Download20, Trash20 } from '@mozaic-ds/icons-vue';
</script>
<MActionListbox
title="Listbox title"
:items="[
{ id: '1', label: 'Duplicate', icon: Copy20 },
{ id: '2', label: 'Download', icon: Download20 },
{ id: '3', label: 'Delete', icon: Trash20, appearance: 'danger', divider: true },
]"
>
<template #activator="{ id }">
<MButton :popovertarget="id">Open menu</MButton>
</template>
</MActionListbox>`,
},
);