Customize

How it works

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
vue
<template>
  <ul>
    <c-list-item
      v-slot="{ item }"
      state-src="reqres://users"
      state-src-transform="data.id"
    >
      {{ item }}
    </c-list-item>
  </ul>
</template>

<script setup>

</script> 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
vue
<template>
  <ul>
    <c-list-item
      v-slot="{ item }"
      state-src="reqres-user-list://"
    >
      {{ item }}
    </c-list-item>
  </ul>
</template>

<script setup>

</script> 
vue
<template>
  <ul>
    <c-errors state-for="original-api://hello" />
  </ul>
  <c-input
    state-src="original-api://hello"
    state-path="hello"
  />
  <c-label
    state-src="original-api://hello"
    state-path="hello"
  />
</template>

<script setup>

</script>