UNPKG

@mozaic-ds/vue

Version:

Mozaic-Vue is the Vue.js implementation of ADEO Design system

32 lines (29 loc) 783 B
/** * Code Connect mapping for MAvatar * Links Figma Avatar (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-6412', { props: { size: figma.enum('Size', { 'S (32px)': 's', 'M (48px)': 'm', 'L (64px)': 'l', }), type: figma.enum('Type', { Picture: 'picture', Initials: 'initials', Icon: 'icon', }), }, example: ({ size }) => html`<script setup> import { MAvatar } from '@mozaic-ds/vue'; </script> <MAvatar size=${size}> <img src="/placeholder.png" alt="Avatar" /> </MAvatar>`, }, );