New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

niceform-hook

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

niceform-hook

Dynamic workhorse for form in react

latest
Source
npmnpm
Version
1.4.3
Version published
Maintainers
1
Created
Source

Niceform-hook

Context-API license NPM PNPM React-hook-form RollupJS

imagem de exemplo

Niceform-hook is a library written on top of react-hook-form, focusing on rendering form fields integrated into your project's design-system. With its power you can easily render your form fields using json, saving time when writing code.

The niceform hook is very complete, designed precisely to meet different types of needs for implementing and using a form.

Install

npm install niceform-hook

Quickstart

import useNiceForm from "./Form.config";

export function App() {
  const form = useNiceForm();

  return (
    <NiceformHookProvider form={form}>
      <form
        className="grid grid-cols-4"
        onSubmit={form.methods.handleSubmit(console.log)}
      >
        <div>
          {form.renderField({
            type: "text",
            name: "name",
            label: "Name",
          })}
        </div>

        <div>
          {form.renderField({
            type: "text",
            name: "service_type",
            label: "Service Type",
          })}
        </div>

        <div>
          {form.renderField({
            type: "email",
            name: "user",
            label: "User",
          })}
        </div>

        <div>
          {form.renderField({
            type: "password",
            name: "password",
            label: "Password",
          })}
        </div>

        <button type="submit">Send</button>
      </form>
    </NiceformHookProvider>
  );
}

Documentation

Storybook Documentation

Keywords

nice

FAQs

Package last updated on 20 Aug 2025

Did you know?

Socket

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.

Install

Related posts