feat (material): update validation with error label

This commit is contained in:
riefive
2025-09-03 15:41:55 +07:00
parent 3c74a123ac
commit 81fa38275a
@@ -63,6 +63,10 @@ const items = [
<Input v-model="data.stock" type="number" />
</Field>
</FieldGroup>
<FieldGroup v-if="!!props.errors.stock">
<Label></Label>
<span class="text-red-400 text-sm">{{ props.errors.stock }}</span>
</FieldGroup>
</Block>
</div>
</div>