* chore: add storybook * chore: unify FE codeabse * chore: update eslint rules * chore: harmonize the use of "subtle" color * chore: remove an extra sidebar rail * refactor: make panel items more consistent * chore: cleanups after merging new code from base * refactor: refine composables * fix: add lost import * chore: make icon style consistent * fix: don't show empty "supported" methods * refactor: solidify select items
31 lines
608 B
Vue
31 lines
608 B
Vue
<script setup lang="ts">
|
|
/**
|
|
* @component AppFormMessage
|
|
* @description Displays validation error messages for a form field.
|
|
*/
|
|
import { ErrorMessage } from 'vee-validate';
|
|
import { toValue } from 'vue';
|
|
import { useFormField } from './useFormField';
|
|
|
|
/*
|
|
* Types & Interfaces.
|
|
*/
|
|
|
|
export interface AppFormMessageProps {}
|
|
|
|
/*
|
|
* Component Setup.
|
|
*/
|
|
|
|
const { name, formMessageId } = useFormField();
|
|
</script>
|
|
|
|
<template>
|
|
<ErrorMessage
|
|
:id="formMessageId"
|
|
as="p"
|
|
:name="toValue(name)"
|
|
class="text-[0.8rem] font-medium text-red-500 dark:text-red-900"
|
|
/>
|
|
</template>
|