Download react-hook-form/src/constants.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/src/constants.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/src/constants.ts
-
curl -L -o constants.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-hook-form/src/constants.ts
454 Bytes
| export const EVENTS = { | |
| BLUR: 'blur', | |
| FOCUS_OUT: 'focusout', | |
| CHANGE: 'change', | |
| } as const; | |
| export const VALIDATION_MODE = { | |
| onBlur: 'onBlur', | |
| onChange: 'onChange', | |
| onSubmit: 'onSubmit', | |
| onTouched: 'onTouched', | |
| all: 'all', | |
| } as const; | |
| export const INPUT_VALIDATION_RULES = { | |
| max: 'max', | |
| min: 'min', | |
| maxLength: 'maxLength', | |
| minLength: 'minLength', | |
| pattern: 'pattern', | |
| required: 'required', | |
| validate: 'validate', | |
| } as const; | |