1.0.1 • Published 9 months ago

minimal-form v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

minimal-form code less set fast

just insert your fields data in structure

import EasyForm from "minimal-form";

export default function App() {
  return (
    <EasyForm
      structure={{
        name: { type: "string" },
        password: { type: "password" },
      }}
      bottonText="submit"
      onSubmit={(d) => console.log(d)}
    />
  );
}

below code output this:

{
    name: "data in input name",
    password: "data in input password",
}