npm.io
2.4.0 • Published 3 years ago

react-inline-form-component

Licence
ISC
Version
2.4.0
Deps
2
Size
6 kB
Vulns
0
Weekly
0

��# ShortCuts for React forms components

Currently Available ShortCuts

1. Input.\

2. Select.\

How to import:

import {Input} from 'react-inline-forms-component'

  1. Input function: Input(type, className, name, value, id, placeholder, onChange, disabled).
    eg: Input(text, 'classA, classB', 'foo', 'bar', 'foo', 'Example', handleChange, false).\

  2. Select function: Select(selectClassName, optionsClassName, Name, value, id, onChange, arr).
    where arr is an array of options value eg: Select('classesA', 'classesB', 'cars', 'car A', 'cars', handleChange, arr)