mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat(Textarea): add icon, loading, etc. props to match Input
This commit is contained in:
@@ -38,7 +38,7 @@ const variants = Object.keys(theme.variants.variant) as Array<keyof typeof theme
|
||||
<div class="flex flex-col gap-4 w-48">
|
||||
<UInput placeholder="Disabled" disabled />
|
||||
<UInput placeholder="Required" required />
|
||||
<UInput file="i-lucide-calculator" type="number" :model-value="10" />
|
||||
<UInput icon="i-lucide-calculator" type="number" :model-value="10" />
|
||||
<UInput icon="i-lucide-folder" type="file" />
|
||||
<UInput icon="i-lucide-calendar" type="date" :model-value="new Date().toISOString().substring(0, 10)" />
|
||||
<UInput icon="i-lucide-lock" type="password" model-value="password" />
|
||||
|
||||
@@ -9,7 +9,7 @@ const variants = Object.keys(theme.variants.variant) as Array<keyof typeof theme
|
||||
<template>
|
||||
<div class="flex flex-col items-center gap-4">
|
||||
<div class="flex flex-col gap-4 w-48">
|
||||
<UTextarea autofocus />
|
||||
<UTextarea autofocus placeholder="Search..." />
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<UTextarea v-for="variant in variants" :key="variant" :placeholder="upperFirst(variant)" :variant="variant" class="w-48" />
|
||||
@@ -36,11 +36,59 @@ const variants = Object.keys(theme.variants.variant) as Array<keyof typeof theme
|
||||
/>
|
||||
</div>
|
||||
<div class="flex flex-col gap-4 w-48">
|
||||
<UTextarea placeholder="Search..." disabled />
|
||||
<UTextarea autoresize :maxrows="5" :rows="1" />
|
||||
<UTextarea placeholder="Disabled" disabled />
|
||||
<UTextarea placeholder="Required" required />
|
||||
<UTextarea icon="i-lucide-text-cursor" placeholder="Autoresize" autoresize :maxrows="5" :rows="1" />
|
||||
<UTextarea icon="i-lucide-search" placeholder="Search..." :rows="1" />
|
||||
<UTextarea loading placeholder="Search..." :rows="1" />
|
||||
<UTextarea loading trailing placeholder="Search..." :rows="1" />
|
||||
<UTextarea loading icon="i-lucide-search" trailing-icon="i-lucide-chevron-down" placeholder="Search..." :rows="1" />
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<UTextarea v-for="size in sizes" :key="size" placeholder="Search..." :size="size" class="w-48" />
|
||||
<UTextarea
|
||||
v-for="size in sizes"
|
||||
:key="size"
|
||||
placeholder="Search..."
|
||||
:size="size"
|
||||
:rows="1"
|
||||
class="w-48"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<UTextarea
|
||||
v-for="size in sizes"
|
||||
:key="size"
|
||||
icon="i-lucide-search"
|
||||
placeholder="Search..."
|
||||
:size="size"
|
||||
:rows="1"
|
||||
class="w-48"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<UTextarea
|
||||
v-for="size in sizes"
|
||||
:key="size"
|
||||
icon="i-lucide-search"
|
||||
trailing
|
||||
placeholder="Search..."
|
||||
:size="size"
|
||||
:rows="1"
|
||||
class="w-48"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<UTextarea
|
||||
v-for="size in sizes"
|
||||
:key="size"
|
||||
:avatar="{ src: 'https://github.com/benjamincanac.png' }"
|
||||
icon="i-lucide-search"
|
||||
trailing
|
||||
placeholder="Search..."
|
||||
:size="size"
|
||||
:rows="1"
|
||||
class="w-48"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user