graneet-form
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

graneet-form

Documentation

Performant forms and wizard library for React

Features 🚀

  • Performant and easy to use
  • System of wizard integrated with integration of form
  • Small bundle size
  • Error handle
  • Value watching built-in

Install

pnpm add graneet-form
# or
yarn add graneet-form
# or
npm install graneet-form

#Usage

import { Field, useForm } from 'graneet-form';

function Input({ name }) {
  return (
    <Field
      name={name}
      render={({ value, onChange, onBlur, onFocus }, state) => {
        return <input value={value} onChange={onChange} onBlur={onBlur} onFocus={onFocus} />;
      }}
    />
  );
}

function App() {
  const form = useForm();

  const handleClick = () => form.getFormValues();

  return (
    <Form form={form}>
      <Input name="firstName" />
      <button onClick={handleClick} />
    </Form>
  );
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0587latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.0587
2.0.0-beta.310
2.0.0-beta.300
2.0.0-beta.290
2.0.0-beta.280
2.0.0-beta.270
2.0.0-beta.260
2.0.0-beta.250
2.0.0-beta.240
2.0.0-beta.230
2.0.0-beta.220
2.0.0-beta.210
2.0.0-beta.200
2.0.0-beta.190
2.0.0-beta.180
2.0.0-beta.170
2.0.0-beta.160
2.0.0-beta.150
2.0.0-beta.140
2.0.0-beta.130
2.0.0-beta.120
2.0.0-beta.110
2.0.0-beta.90
2.0.0-beta.80
2.0.0-beta.70
2.0.0-beta.60
2.0.0-beta.50
2.0.0-beta.40
2.0.0-beta.30
2.0.0-beta.20
2.0.0-beta.10
2.0.0-beta.00
1.3.00
1.2.11
1.2.00
1.1.00
1.0.10
1.0.01

Package Sidebar

Install

npm i graneet-form

Weekly Downloads

589

Version

2.0.0

License

MIT

Unpacked Size

437 kB

Total Files

87

Last publish

Collaborators

  • graneet