feat(input): Setting validation status and message. (#172)
* feat(input): Setting validation status and message. * Update src/components/Input/composables/useInputClasses.ts * Update docs/components/input/examples/InputValidationExample.vue * Update docs/components/input/examples/InputValidationExample.vue * Update docs/components/input.md * Update docs/components/input.md --------- Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="vp-raw">
|
||||
<Input placeholder="enter your first name" label="First name">
|
||||
<Input v-model='name' placeholder="enter your first name" label="First name">
|
||||
<template #helper>
|
||||
We’ll never share your details. Read our <a href="#" class="font-medium text-blue-600 hover:underline dark:text-blue-500">Privacy Policy</a>.
|
||||
</template>
|
||||
@@ -8,5 +8,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
import { Input } from '../../../../src/index'
|
||||
|
||||
const name = ref('')
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user