fix(FormField): improve error type with boolean

Resolves #4496
This commit is contained in:
Benjamin Canac
2025-07-10 12:04:06 +02:00
parent 5ad7dabbdc
commit a4d0ca7396

View File

@@ -18,7 +18,7 @@ export interface FormFieldProps {
label?: string label?: string
description?: string description?: string
help?: string help?: string
error?: string | boolean error?: boolean | string
hint?: string hint?: string
/** /**
* @defaultValue 'md' * @defaultValue 'md'
@@ -41,8 +41,8 @@ export interface FormFieldSlots {
hint(props: { hint?: string }): any hint(props: { hint?: string }): any
description(props: { description?: string }): any description(props: { description?: string }): any
help(props: { help?: string }): any help(props: { help?: string }): any
error(props: { error?: string | boolean }): any error(props: { error?: boolean | string }): any
default(props: { error?: string | boolean }): any default(props: { error?: boolean | string }): any
} }
</script> </script>