refactor: DisplayTextItem typing

This commit is contained in:
axolotle 2024-07-05 20:51:17 +02:00
parent 906d9ca95c
commit 4242b55327
2 changed files with 8 additions and 11 deletions

View file

@ -1,18 +1,13 @@
<script setup lang="ts">
withDefaults(
defineProps<{
id?: string
label?: string
}>(),
{
id: undefined,
label: undefined,
},
)
import type { DisplayTextItemProps } from '@/types/form'
withDefaults(defineProps<DisplayTextItemProps>(), {
id: undefined,
})
</script>
<template>
<div>
<div :id="id">
<p v-text="label" />
</div>
</template>

View file

@ -15,6 +15,8 @@ export type ButtonItemProps = BaseDisplayItemProps & {
type?: StateVariant
}
export type DisplayTextItemProps = BaseDisplayItemProps
// WRITABLE