Label demos for Password
parent
aa6ed99637
commit
be9eae60ba
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||
<p>FloatLabel visually integrates a label with its form element. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex flex-wrap justify-center items-end gap-4">
|
||||
<FloatLabel>
|
||||
|
|
|
@ -2,10 +2,20 @@
|
|||
<DocSectionText v-bind="$attrs">
|
||||
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<div class="card flex flex-wrap justify-center items-end gap-4">
|
||||
<FloatLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
<Password v-model="value1" inputId="over_label" />
|
||||
<label for="over_label">Over Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="in">
|
||||
<Password v-model="value2" inputId="in_label" />
|
||||
<label for="in_label">In Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="on">
|
||||
<Password v-model="value3" inputId="on_label" />
|
||||
<label for="on_label">On Label</label>
|
||||
</FloatLabel>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
|
@ -15,20 +25,42 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null,
|
||||
value1: null,
|
||||
value2: null,
|
||||
value3: null,
|
||||
code: {
|
||||
basic: `
|
||||
<FloatLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
<Password v-model="value1" inputId="over_label" />
|
||||
<label for="over_label">Over Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="in">
|
||||
<Password v-model="value2" inputId="in_label" />
|
||||
<label for="in_label">In Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="on">
|
||||
<Password v-model="value3" inputId="on_label" />
|
||||
<label for="on_label">On Label</label>
|
||||
</FloatLabel>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<div class="card flex flex-wrap justify-center items-end gap-4">
|
||||
<FloatLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
<Password v-model="value1" inputId="over_label" />
|
||||
<label for="over_label">Over Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="in">
|
||||
<Password v-model="value2" inputId="in_label" />
|
||||
<label for="in_label">In Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="on">
|
||||
<Password v-model="value3" inputId="on_label" />
|
||||
<label for="on_label">On Label</label>
|
||||
</FloatLabel>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -37,7 +69,9 @@ export default {
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null
|
||||
value1: null,
|
||||
value2: null,
|
||||
value3: null,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -45,10 +79,20 @@ export default {
|
|||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<div class="card flex flex-wrap justify-center items-end gap-4">
|
||||
<FloatLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
<Password v-model="value1" inputId="over_label" />
|
||||
<label for="over_label">Over Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="in">
|
||||
<Password v-model="value2" inputId="in_label" />
|
||||
<label for="in_label">In Label</label>
|
||||
</FloatLabel>
|
||||
|
||||
<FloatLabel variant="on">
|
||||
<Password v-model="value3" inputId="on_label" />
|
||||
<label for="on_label">On Label</label>
|
||||
</FloatLabel>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -56,7 +100,9 @@ export default {
|
|||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const value = ref(null);
|
||||
const value1 = ref(null);
|
||||
const value2 = ref(null);
|
||||
const value3 = ref(null);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>IftaLabel is used to create infield top aligned labels. Visit <PrimeVueNuxtLink to="/iftalabel">IftaLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<IftaLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
</IftaLabel>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null,
|
||||
code: {
|
||||
basic: `
|
||||
<IftaLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
</IftaLabel>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<IftaLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
</IftaLabel>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null
|
||||
}
|
||||
}
|
||||
}
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<IftaLabel>
|
||||
<Password v-model="value" inputId="password" />
|
||||
<label for="password">Password</label>
|
||||
</IftaLabel>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const value = ref(null);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -8,6 +8,7 @@ import BasicDoc from '@/doc/password/BasicDoc.vue';
|
|||
import DisabledDoc from '@/doc/password/DisabledDoc.vue';
|
||||
import FilledDoc from '@/doc/password/FilledDoc.vue';
|
||||
import FloatLabelDoc from '@/doc/password/FloatLabelDoc.vue';
|
||||
import IftaLabelDoc from '@/doc/password/IftaLabelDoc.vue';
|
||||
import ImportDoc from '@/doc/password/ImportDoc.vue';
|
||||
import InvalidDoc from '@/doc/password/InvalidDoc.vue';
|
||||
import LocaleDoc from '@/doc/password/LocaleDoc.vue';
|
||||
|
@ -56,6 +57,11 @@ export default {
|
|||
label: 'Float Label',
|
||||
component: FloatLabelDoc
|
||||
},
|
||||
{
|
||||
id: 'iftalabel',
|
||||
label: 'Ifta Label',
|
||||
component: IftaLabelDoc
|
||||
},
|
||||
{
|
||||
id: 'filled',
|
||||
label: 'Filled',
|
||||
|
|
Loading…
Reference in New Issue