Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
chakra-ui-react-hook-form
Advanced tools
Bindings for using [react-hook-form](https://github.com/react-hook-form/react-hook-form) with [Chakra UI](http://next.chakra-ui.com).
Bindings for using react-hook-form with Chakra UI.
yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion react-hook-form chakra-ui-react-hook-form
Or
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion react-hook-form chakra-ui-react-hook-form
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import {
InputControl,
NumberInputControl,
TextareaControl,
SubmitButton,
} from 'chakra-ui-react-hook-form';
import { useForm } from 'react-hook-form';
const infoFormValidationSchema = z.object({
firstName: z.string(),
lastName: z.string(),
description: z.string(),
age: z.number(),
});
type InfoFormValues = z.infer<typeof infoFormValidationSchema>;
const InfoForm = () => {
const { control, handleSubmit } = useForm<InfoFormValues>({
defaultValues: {
firstName: '',
lastName: '',
description: '',
age: 0,
},
resolver: zodResolver(infoFormValidationSchema),
});
const onSubmit = (values: InfoFormValues) => {
console.log({ values });
};
return (
<form onSubmit={handleSubmit(onSubmit)}>
<InputControl control={control} name="firstName" label="First name:" />
<InputControl control={control} name="lastName" label="Last name:" />
<NumberInputControl control={control} name="age" label="Age:" />
<TextareaControl control={control} name="description" label="Description:" />
<SubmitButton control={control} />
</form>
);
};
valueAsNumber
, valueAsDate
, setValueAs
, Left/Right Addon/Element
)<Checkbox />
)<RadioGroup/>
)chakra-react-select
)FAQs
Bindings for using [react-hook-form](https://github.com/react-hook-form/react-hook-form) with [Chakra UI](http://next.chakra-ui.com).
The npm package chakra-ui-react-hook-form receives a total of 29 weekly downloads. As such, chakra-ui-react-hook-form popularity was classified as not popular.
We found that chakra-ui-react-hook-form demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.