mirror of https://github.com/wg-easy/wg-easy
3 changed files with 43 additions and 1 deletions
@ -0,0 +1,35 @@ |
|||||
|
<template> |
||||
|
<div class="flex items-center"> |
||||
|
<FormLabel :for="id"> |
||||
|
{{ label }} |
||||
|
</FormLabel> |
||||
|
<BaseTooltip v-if="description" :text="description"> |
||||
|
<IconsInfo class="size-4" /> |
||||
|
</BaseTooltip> |
||||
|
</div> |
||||
|
<div class="flex"> |
||||
|
<BaseInput |
||||
|
:id="id" |
||||
|
v-model.trim="data" |
||||
|
:name="id" |
||||
|
type="text" |
||||
|
class="w-full" |
||||
|
/> |
||||
|
<BaseButton type="button" @click="data = ''"> |
||||
|
<div class="flex items-center gap-3"> |
||||
|
<IconsSparkles class="w-4" /> |
||||
|
<span>Suggest</span> |
||||
|
</div> |
||||
|
</BaseButton> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
defineProps<{ |
||||
|
id: string; |
||||
|
label: string; |
||||
|
description?: string; |
||||
|
}>(); |
||||
|
|
||||
|
const data = defineModel<string>(); |
||||
|
</script> |
@ -0,0 +1,7 @@ |
|||||
|
<template> |
||||
|
<SparklesIcon /> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
import SparklesIcon from '@heroicons/vue/24/outline/esm/SparklesIcon'; |
||||
|
</script> |
Loading…
Reference in new issue