UNPKG

@mozaic-ds/vue

Version:

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

39 lines (36 loc) 975 B
/** * Code Connect mapping for MKpiItem * Links Figma KPI item (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-21651', { props: { value: figma.string('Value'), label: figma.string('KPI label'), size: figma.enum('Size', { 'S (Badge)': 's', 'M (Inline)': 'm', 'L (Card)': 'l', }), status: figma.enum('Status', { Information: 'info', Success: 'success', Warning: 'warning', Error: 'error', Neutral: 'neutral', }), }, example: ({ value, label, size, status }) => html`<script setup> import { MKpiItem } from '@mozaic-ds/vue'; </script> <MKpiItem value=${value} label=${label} size=${size} status=${status} />`, }, );