Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 7f7f4d9

Browse files
committed
chore: add validation props to base input exports
1 parent b0fded1 commit 7f7f4d9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const BaseInputProps = {
66
name: { type: String, required: true },
77
isDirty: { type: Boolean, default: () => false },
88
isTouched: { type: Boolean, default: () => false },
9+
isValidating: { type: Boolean, default: () => false },
910
disabled: { type: Boolean, default: () => false },
1011
error: { type: String, default: () => '' },
1112
onBlur: { type: Function, required: true },

src/types/baseControl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export interface BaseControlProps<
2929
/** Current touched state of the control */
3030
isTouched?: boolean
3131

32+
/** Current validating state of the control */
33+
isValidating?: boolean
34+
3235
/** Handler binding for native inputs */
3336
onChange?: (el: any) => Promise<void>
3437
}

0 commit comments

Comments
 (0)