24 lines
398 B
Vue
24 lines
398 B
Vue
<template>
|
|
<InputBase
|
|
v-model="model"
|
|
v-bind="$attrs"
|
|
:label="label"
|
|
:name="name"
|
|
:placeholder="placeholder"
|
|
type="text"
|
|
>
|
|
<template #message>
|
|
<slot name="message"></slot>
|
|
</template>
|
|
</InputBase>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const model = defineModel<string>()
|
|
|
|
defineProps<{
|
|
label: string
|
|
name: string
|
|
placeholder?: string
|
|
}>()
|
|
</script> |