UNPKG

@mozaic-ds/vue

Version:

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

46 lines (43 loc) 1.22 kB
/** * Code Connect mapping for MCheckbox * Links Figma Checkbox (stand-alone) (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-29180', { props: { modelValue: figma.enum('Is checked', { True: true, False: false, }), indeterminate: figma.enum('is Indeterminate', { True: true, False: false, }), disabled: figma.enum('State', { Disabled: true, Default: false, Hovered: false, Focused: false, 'Read-only': false, }), isInvalid: figma.enum('is invalid', { True: true, False: false, }), }, example: ({ modelValue, indeterminate, disabled, isInvalid }) => html`<script setup> import { MCheckbox } from '@mozaic-ds/vue'; </script> <MCheckbox id="checkbox-id" label="Checkbox Label" :model-value=${modelValue} :indeterminate=${indeterminate} disabled=${disabled} :is-invalid=${isInvalid} ></MCheckbox>`, }, );