@anctech/email
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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

Package Sidebar

Install

npm i @anctech/email

Weekly Downloads

15

Version

1.0.2

License

MIT

Unpacked Size

15.2 kB

Total Files

6

Last publish

Collaborators

  • ryanzhangau