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>
<div class="card flex flex-wrap justify-center items-end gap-4">
<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>
</FloatLabel>
<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>
</FloatLabel>
<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>
</FloatLabel>
</div>
@ -31,16 +31,36 @@ export default {
code: {
basic: `
<FloatLabel>
<DatePicker v-model="date" inputId="birth_date" />
<label for="birth_date">Birth Date</label>
<DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<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>
`,
options: `
<template>
<div class="card flex justify-center">
<div class="card flex flex-wrap justify-center items-end gap-4">
<FloatLabel>
<DatePicker v-model="date" inputId="birth_date" />
<label for="birth_date">Birth Date</label>
<DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<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>
</div>
</template>
@ -51,7 +71,7 @@ export default {
return {
value1: null,
value2: null,
value3: null,
value3: null
}
}
};
@ -59,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>
<DatePicker v-model="date" inputId="birth_date" />
<label for="birth_date">Birth Date</label>
<DatePicker v-model="value1" inputId="over_label" showIcon iconDisplay="input" />
<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>
</div>
</template>

View File

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