File tree Expand file tree Collapse file tree 5 files changed +55
-3
lines changed
Expand file tree Collapse file tree 5 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 1- - label
1+ - prepare Readme
22- disable style
33- run tests & update snapshots
44- build package
55- deploy package
66- build static site
77- website deploy script
8+
9+ # React Multi Fields Input component
10+
11+ React Multi Fields Input component comes with zero styles to allow you style it in accordance to your style guidelines.
12+
13+ ![ react-multi-fields-input component] ( https://github.com/kakuevn/react-multi-fields-input/raw/develop/src/assets/rmfi.png )
14+
15+ Props that MultiFieldsInput component accepts:
16+
17+ ``` js static
18+ {
19+ inputs: Inputs[];
20+ name: string;
21+ onBlur (target: Target): void ;
22+ onChange (target: Target): void ;
23+ isValid?: boolean;
24+ value?: string;
25+ autoFocus?: boolean;
26+ }
27+ ```
28+
29+ ` inputs ` is an array of objects that are constructed of
30+
31+ ``` js static
32+ {
33+ type: ' number' | ' text' ;
34+ maxLength: number;
35+ placeholder: string;
36+ min?: number;
37+ max?: number;
38+ }
39+ ```
40+
41+ The values that are being returned ` onBlur ` and ` onChange ` (i.e. ` Target ` interface):
42+
43+ ``` js static
44+ { name: ' ' , value: ' ' }
45+ ```
Original file line number Diff line number Diff line change 1+ React Multi Fields Input component comes with zero styles to allow you style it in accordance to your style guidelines.
2+
13Props that MultiFieldsInput component accepts:
24
35``` js static
Original file line number Diff line number Diff line change 1+ @import url (' https://fonts.googleapis.com/css?family=Open+Sans' );
2+
3+ .rmfi-container {
4+ font-family : ' Open Sans' , sans-serif ;
5+ }
6+
17.rmfi-input {
28 border : 1px solid #ecf0f1 ;
39 padding : 1em 1.5em ;
2127.rmfi-error {
2228 border-color : #e74c3c ;
2329}
30+
31+ .rmfi-label {
32+ display : block ;
33+ font-size : 0.8em ;
34+ font-weight : bold ;
35+ }
You can’t perform that action at this time.
0 commit comments