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,10 +1,12 @@
|
||||
<template>
|
||||
<div class="vp-raw flex flex-col align-center gap-2 flex-wrap">
|
||||
<Input size="sm" placeholder="enter your first name" label="Small" />
|
||||
<Input size="md" placeholder="enter your last name" label="Medium" />
|
||||
<Input size="lg" placeholder="enter your second name" label="Large" />
|
||||
<Input v-model='name' size="sm" placeholder="enter your first name" label="Small" />
|
||||
<Input v-model='name' size="md" placeholder="enter your last name" label="Medium" />
|
||||
<Input v-model='name' size="lg" placeholder="enter your second name" label="Large" />
|
||||
</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