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

@any-ui/form

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-ui/form

Simple, self contained form management

latest
Source
npmnpm
Version
3.0.0-alpha.7
Version published
Maintainers
2
Created
Source

@any-ui/form

Simple, self contained form management

npm package licence npm type definitions Code style react react router

PeerDependencies Dependencies DevDependencies

Built on top of React Final Form

Warning

This is an unstable alpha channel of any-ui, find the latest stable release here.

Installation

// with npm
npm install @any-ui/form@next

// with yarn
yarn add @any-ui/form@next

Please note that @next will only point to pre-releases; to get the latest stable release use @latest instead.

Example code showing intended use

import {
  EmailField,
  Form,
  FormSubmitHandler,
  PasswordField,
  TextField,
} from '@any-ui/form'

interface IFormFields {
  name: string
  password: string
  email: string
  address: string
}
const handleSubmit: FormSubmitHandler<IFormFields> = async values => {
  alert(`Submit success for ${values.name}`)
}

<Form<IFormFields> onSubmit={handleSubmit}>
  <TextField 
    required 
    autoFocus 
    name="name" 
    label="Name" />
  <PasswordField 
    required 
    name="password" 
  />
  <EmailField 
    name="email" 
    label="Email"
  />
  <TextField 
    name="address" 
    label="Address" 
    rows={5} 
    />
</Form>

Please note that @next will only point to pre-releases; to get the latest stable release use @latest instead.

Documentation

One day....

Keywords

react

FAQs

Package last updated on 08 Aug 2020

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