1.0.2 • Published 2 years ago

@anctech/email v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@anctech/button

Usage

<AnctechField label='Text Field' name="text-field" value="default value" placeholder="placeholder" formHook={formHook} />

Props

label (mandetory)

Type: string Description: label shows the text on field

name (mandetory)

Type: string Description: name for field in dom

value (mandetory)

Type: string | number Description: default value for the field

formHook (mandetory)

Type: UseFormReturn Description: Form hook from react hook form lib

placeholder (optional)

Type: string Description: display placeholder text in the field

disabled (optional)

Type: boolean Description: Make field disable when it is true. Default value is false

hideError (optional)

Type: boolean Description: hide the error message when it is true. Default value is false

validationRules (optional)

Type: RegisterOptions Description: validate field value