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