
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
@webiny/form
Advanced tools
A simple React library for creating forms.
npm install --save @webiny/form
Or if you prefer yarn:
yarn add @webiny/form
import React, { useCallback } from "react";
import { Form } from "@webiny/form";
import { Input } from "@webiny/ui/Input";
import { ButtonPrimary } from "@webiny/ui/Button";
import { validation } from "@webiny/validation";
const CarManufacturersForm = () => {
const onSubmit = useCallback(formData => console.log(formData), []);
return (
<Form data={{ title: "Untitled" }} onSubmit={onSubmit}>
{({ form, Bind }) => (
<React.Fragment>
<Bind name="title" validators={validation.create("required")}>
<Input label={"Title"} />
</Bind>
<Bind name="description" validators={validation.create("maxLength:500")}>
<Input
label={"Description"}
description={"Provide a short description here."}
rows={4}
/>
</Bind>
<ButtonPrimary onClick={form.submit}>Submit</ButtonPrimary>
</React.Fragment>
)}
</Form>
);
};
export default CarManufacturersForm;
FAQs
A simple React library for working with forms.
The npm package @webiny/form receives a total of 1,466 weekly downloads. As such, @webiny/form popularity was classified as popular.
We found that @webiny/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.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.