Demo cosmetics

pull/6439/head
Cagatay Civici 2024-09-18 13:23:01 +03:00
parent ba4fbe91f1
commit 14a5cffd69
2 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs">
<p>When the form element is invalid, the label is also highlighted.</p> <p>When the form element is invalid, the label is also highlighted.</p>
</DocSectionText> </DocSectionText>
<div class="card flex justify-center items-center gap-4"> <div class="card flex justify-center items-end gap-4">
<FloatLabel> <FloatLabel>
<InputText id="value1" v-model="value1" autocomplete="off" :invalid="!value1" /> <InputText id="value1" v-model="value1" autocomplete="off" :invalid="!value1" />
<label for="value1">Username</label> <label for="value1">Username</label>
@ -47,7 +47,7 @@ export default {
`, `,
options: ` options: `
<template> <template>
<div class="card flex justify-center items-center gap-4"> <div class="card flex justify-center items-end gap-4">
<FloatLabel> <FloatLabel>
<InputText id="value1" v-model="value1" :invalid="!value1" /> <InputText id="value1" v-model="value1" :invalid="!value1" />
<label for="value1">Username</label> <label for="value1">Username</label>
@ -80,7 +80,7 @@ export default {
`, `,
composition: ` composition: `
<template> <template>
<div class="card flex justify-center items-center gap-4"> <div class="card flex justify-center items-end gap-4">
<FloatLabel> <FloatLabel>
<InputText id="value1" v-model="value1" :invalid="!value1" /> <InputText id="value1" v-model="value1" :invalid="!value1" />
<label for="value1">Username</label> <label for="value1">Username</label>
@ -101,9 +101,9 @@ export default {
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
const value1 = ref(null); const value1 = ref('');
const value2 = ref(null); const value2 = ref('');
const value3 = ref(null); const value3 = ref('');
<\/script> <\/script>
` `
} }

View File

@ -19,7 +19,7 @@ export default {
code: { code: {
basic: ` basic: `
<IftaLabel> <IftaLabel>
<InputText id="username" v-model="value" autocomplete="off" /> <InputText id="username" v-model="value" />
<label for="username">Username</label> <label for="username">Username</label>
</IftaLabel> </IftaLabel>
`, `,
@ -27,7 +27,7 @@ export default {
<template> <template>
<div class="card flex justify-center"> <div class="card flex justify-center">
<IftaLabel> <IftaLabel>
<InputText id="username" v-model="value" autocomplete="off" /> <InputText id="username" v-model="value" />
<label for="username">Username</label> <label for="username">Username</label>
</IftaLabel> </IftaLabel>
</div> </div>
@ -48,7 +48,7 @@ export default {
<template> <template>
<div class="card flex justify-center"> <div class="card flex justify-center">
<IftaLabel> <IftaLabel>
<InputText id="username" v-model="value" autocomplete="off" /> <InputText id="username" v-model="value" />
<label for="username">Username</label> <label for="username">Username</label>
</IftaLabel> </IftaLabel>
</div> </div>