Gathering detailed insights and metrics for formik-error-focus
Gathering detailed insights and metrics for formik-error-focus
Gathering detailed insights and metrics for formik-error-focus
Gathering detailed insights and metrics for formik-error-focus
npm install formik-error-focus
65.2
Supply Chain
96.3
Quality
74.5
Maintenance
100
Vulnerability
99.3
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
9 Stars
36 Commits
2 Forks
2 Watching
1 Branches
4 Contributors
Updated on 19 Dec 2022
Minified
Minified + Gzipped
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-40.8%
409
Compared to previous day
Last week
-23.6%
2,710
Compared to previous week
Last month
4.6%
17,937
Compared to previous month
Last year
24%
219,848
Compared to previous year
2
Scroll to the first error in your Formik form and set focus
Wrapper around scroll-to-element that scrolls to the first error element in Formik.
Install the package locally within you project folder with your package manager:
With npm
:
1npm install formik-error-focus
With yarn
:
1yarn add formik-error-focus
With pnpm
:
1pnpm add formik-error-focus
1import React from "react"; 2import { Formik, Field, Form } from "formik"; 3import FormikErrorFocus from "formik-error-focus"; 4 5export const Signup = () => ( 6 <div> 7 <h1>My Uncool Persisted Form</h1> 8 <Formik 9 onSubmit={(values) => console.log(values)} 10 initialValues={{ firstName: "", lastName: "", email: "" }} 11 render={(props) => ( 12 <Form className="whatever"> 13 <Field name="firstName" placeholder="First Name" /> 14 <Field name="lastName" placeholder="Last Name" /> 15 <Field name="email" type="email" placeholder="Email Address" /> 16 <button type="submit">Submit</button> 17 <FormikErrorFocus 18 // See scroll-to-element for configuration options: https://www.npmjs.com/package/scroll-to-element 19 offset={0} 20 align={"top"} 21 focusDelay={200} 22 ease={"linear"} 23 duration={1000} 24 /> 25 </Form> 26 )} 27 /> 28 </div> 29);
For all configuration options, please see the API docs.
Got an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
Found 2/9 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More