feat(input): Allow to set "required" attribute

Fixes #163
This commit is contained in:
Nguyễn Hồng Quân
2023-07-03 17:29:11 +07:00
parent ae2eaf1bd4
commit c4627e4af2
3 changed files with 29 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
<template>
<div class="vp-raw">
<Input v-model='name' required placeholder="enter your first name" label="First name">
</Input>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Input } from '../../../../src/index'
const name = ref('')
</script>