mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
fix(FormField): allow error prop as boolean
This commit is contained in:
@@ -15,7 +15,7 @@ export interface FormFieldProps {
|
|||||||
label?: string
|
label?: string
|
||||||
description?: string
|
description?: string
|
||||||
help?: string
|
help?: string
|
||||||
error?: string
|
error?: string | boolean
|
||||||
hint?: string
|
hint?: string
|
||||||
size?: FormFieldVariants['size']
|
size?: FormFieldVariants['size']
|
||||||
required?: boolean
|
required?: boolean
|
||||||
@@ -29,9 +29,9 @@ export interface FormFieldSlots {
|
|||||||
label(props: { label?: string }): any
|
label(props: { label?: string }): any
|
||||||
hint(props: { hint?: string }): any
|
hint(props: { hint?: string }): any
|
||||||
description(props: { description?: string }): any
|
description(props: { description?: string }): any
|
||||||
error(props: { error?: string }): any
|
|
||||||
help(props: { help?: string }): any
|
help(props: { help?: string }): any
|
||||||
default(props: { error?: string }): any
|
error(props: { error?: string | boolean }): any
|
||||||
|
default(props: { error?: string | boolean }): any
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user