Icons for label demos

pull/6449/head
Cagatay Civici 2024-09-20 13:50:59 +03:00
parent 8e3a20d2c6
commit 98d2d4e449
2 changed files with 46 additions and 16 deletions

View File

@ -4,17 +4,17 @@
</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>
<DatePicker v-model="value1" inputId="over_label" /> <DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<label for="over_label">Over Label</label> <label for="over_label">Over Label</label>
</FloatLabel> </FloatLabel>
<FloatLabel variant="in"> <FloatLabel variant="in">
<DatePicker v-model="value2" inputId="in_label" /> <DatePicker v-model="value2" inputId="in_label" showIcon iconDisplay="input" />
<label for="in_label">In Label</label> <label for="in_label">In Label</label>
</FloatLabel> </FloatLabel>
<FloatLabel variant="on"> <FloatLabel variant="on">
<DatePicker v-model="value3" inputId="on_label" /> <DatePicker v-model="value3" inputId="on_label" showIcon iconDisplay="input" />
<label for="on_label">On Label</label> <label for="on_label">On Label</label>
</FloatLabel> </FloatLabel>
</div> </div>
@ -31,16 +31,36 @@ export default {
code: { code: {
basic: ` basic: `
<FloatLabel> <FloatLabel>
<DatePicker v-model="date" inputId="birth_date" /> <DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<label for="birth_date">Birth Date</label> <label for="over_label">Over Label</label>
</FloatLabel>
<FloatLabel variant="in">
<DatePicker v-model="value2" inputId="in_label" showIcon iconDisplay="input" />
<label for="in_label">In Label</label>
</FloatLabel>
<FloatLabel variant="on">
<DatePicker v-model="value3" inputId="on_label" showIcon iconDisplay="input" />
<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>
<DatePicker v-model="date" inputId="birth_date" /> <DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<label for="birth_date">Birth Date</label> <label for="over_label">Over Label</label>
</FloatLabel>
<FloatLabel variant="in">
<DatePicker v-model="value2" inputId="in_label" showIcon iconDisplay="input" />
<label for="in_label">In Label</label>
</FloatLabel>
<FloatLabel variant="on">
<DatePicker v-model="value3" inputId="on_label" showIcon iconDisplay="input" />
<label for="on_label">On Label</label>
</FloatLabel> </FloatLabel>
</div> </div>
</template> </template>
@ -51,7 +71,7 @@ export default {
return { return {
value1: null, value1: null,
value2: null, value2: null,
value3: null, value3: null
} }
} }
}; };
@ -59,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>
<DatePicker v-model="date" inputId="birth_date" /> <DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<label for="birth_date">Birth Date</label> <label for="over_label">Over Label</label>
</FloatLabel>
<FloatLabel variant="in">
<DatePicker v-model="value2" inputId="in_label" showIcon iconDisplay="input" />
<label for="in_label">In Label</label>
</FloatLabel>
<FloatLabel variant="on">
<DatePicker v-model="value3" inputId="on_label" showIcon iconDisplay="input" />
<label for="on_label">On Label</label>
</FloatLabel> </FloatLabel>
</div> </div>
</template> </template>

View File

@ -4,7 +4,7 @@
</DocSectionText> </DocSectionText>
<div class="card flex justify-center"> <div class="card flex justify-center">
<IftaLabel> <IftaLabel>
<DatePicker v-model="value" inputId="date" /> <DatePicker v-model="value" inputId="date" showIcon iconDisplay="input" />
<label for="date">Date</label> <label for="date">Date</label>
</IftaLabel> </IftaLabel>
</div> </div>
@ -19,7 +19,7 @@ export default {
code: { code: {
basic: ` basic: `
<IftaLabel> <IftaLabel>
<DatePicker v-model="value" inputId="date" /> <DatePicker v-model="value" inputId="date" showIcon iconDisplay="input" />
<label for="date">Date</label> <label for="date">Date</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>
<DatePicker v-model="value" inputId="date" /> <DatePicker v-model="value" inputId="date"showIcon iconDisplay="input" />
<label for="date">Date</label> <label for="date">Date</label>
</IftaLabel> </IftaLabel>
</div> </div>
@ -47,7 +47,7 @@ export default {
<template> <template>
<div class="card flex justify-center"> <div class="card flex justify-center">
<IftaLabel> <IftaLabel>
<DatePicker v-model="value" inputId="date" /> <DatePicker v-model="value" inputId="date" showIcon iconDisplay="input" />
<label for="date">Date</label> <label for="date">Date</label>
</IftaLabel> </IftaLabel>
</div> </div>