package
Simple Declarative Form Library
npm install cuneiformGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Simple and Declarative React Forms
npm i cuneiformimport React from 'react';
import Form from 'cuneiform';
export default Create({ onSubmit }) {
return (
<Form onSubmit={onSubmit}>
{({ getValue, setValue, resetForm }) => {
return (
<React.Fragment>
<input
name="name"
type="text"
value={getValue("name")}
onChange={setValue}
/>
<input
name="superhero-name"
type="text"
value={getValue("superhero-name")}
onChange={setValue}
/>
<button onClick={resetForm}>Reset</button>
<button type="submit">Submit</button>
</React.Fragment>
);
}}
</Form>
)
)Estimated unpacked size across 23 packages.
4.1 MB
Includes dependencies.
6 direct · 2 outdated
^4.17.5
4.18.1
^0.26.0
0.30.0
^4.5.0
4.18.0
^3.0.0
3.0.0
^4.5.0
4.5.0
^1.1.0
3.1.3