
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@berlitz/form
Advanced tools
Creates a form from a provided schema.
yarn add @berlitz/form
| Argument | Type | Required | Default | Notes |
|---|---|---|---|---|
| action | string | β | Added to the action attribute on the <form> element. Useful for making forms work when Javascript is disabled. | |
| fields | array | β | Schema for generating the form fields. Refer to the proptypes for the required shape. | |
| onSubmit | function | β | Callback used to handle form submission. onSubmit(values, setSubmitting, setStatus, resetForm) | |
| enableReinitialize | boolean | β | true | Sets the Formik enableReinitialize prop. More info https://tinyurl.com/rzwvmhr |
| method | string | β | 'post' | Sets the method attribute on the <form> element. |
| hiddenFields | array | β | Schema for generating hidden form fields. | |
| light | boolean | β | false | Sets the background to a solid colour and changes all labels and text in the form to be light. |
| loadingLabel | string | β | 'Loading' | Text for the submit button when it is loading. |
| onChange | function | β | Callback used to handle form changes. onChange(values) | |
| submitLabel | string | β | 'Submit' | Text for the submit button. |
| termsLabel | string | β | Text for a Terms and Conditions checkbox. The checkbox will not show if no text is provided. | |
| submitButtonRef | object | β | A ref that is passed to the <SubmitButton /> on this form. Useful for triggering submit events outside of this component. | |
| hideSubmitButton | boolean | β | Useful in combination with submitButtonRef for showing a custom submit button outside of this component. |
import Form from '@berlitz/form'
<Form
action="/"
onSubmit={(values, setSubmitting) => {
alert(values)
setTimeout(() => {
setSubmitting(false)
}, 2000)
}}
submitLabel="Find out more"
fields={fields}
hiddenFields={hiddenFields}
termsLabel="I accept the terms"
onChange={values => {
setValues(values)
}}
light
/>
FAQs
Form component for the Max Design System
We found that @berlitz/form demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: whatβs affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.