@anctech/password
v1.0.1
Published
ReactJs password input field
Downloads
2
Maintainers
Readme
@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