/**
 * Code Connect mapping for MStepperCompact
 * Links Figma Stepper (Compact) (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=13297-24864',
  {
    props: {
      label: figma.string('Step label'),
      description: figma.string('Next step label'),
    },
    example: ({ label, description }) =>
      html`<script setup>
          import { MStepperCompact } from '@mozaic-ds/vue';
        </script>

        <MStepperCompact
          label=${label}
          :description=${description}
          :value="1"
          :max-steps="4"
        ></MStepperCompact>`,
  },
);
