|
10 | 10 | "https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Incubator.TextField/FloatingPlaceholder.gif?raw=true, https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Incubator.TextField/Validation.gif?raw=true, https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Incubator.TextField/ColorByState.gif?raw=true, https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Incubator.TextField/CharCounter.gif?raw=true, https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Incubator.TextField/Hint.gif?raw=true"
|
11 | 11 | ],
|
12 | 12 | "props": [
|
| 13 | + {"name": "color", "type": "ColorType", "description": "Input color"}, |
13 | 14 | {"name": "label", "type": "string", "description": "Field label"},
|
14 | 15 | {
|
15 | 16 | "name": "labelColor",
|
|
18 | 19 | },
|
19 | 20 | {"name": "labelStyle", "type": "TextStyle", "description": "Custom style for the field label"},
|
20 | 21 | {"name": "labelProps", "type": "TextProps", "description": "Pass extra props to the label Text element"},
|
| 22 | + {"name": "hint", "type": "string", "description": "A hint text to display when focusing the field"}, |
| 23 | + {"name": "placeholder", "type": "string", "description": "The placeholder for the field"}, |
| 24 | + {"name": "placeholderTextColor", "type": "ColorType", "description": "Placeholder text color"}, |
21 | 25 | {"name": "floatingPlaceholder", "type": "boolean", "description": "Pass to add floating placeholder support"},
|
| 26 | + {"name": "floatingPlaceholderColor", "type": "ColorType", "description": "The floating placeholder color"}, |
22 | 27 | {
|
23 | 28 | "name": "floatingPlaceholderStyle",
|
24 | 29 | "type": "TextStyle",
|
25 | 30 | "description": "Custom style for the floating placeholder"
|
26 | 31 | },
|
| 32 | + { |
| 33 | + "name": "floatOnFocus", |
| 34 | + "type": "boolean", |
| 35 | + "description": "Should placeholder float on focus or when start typing" |
| 36 | + }, |
27 | 37 | {"name": "leadingAccessory", "type": "ReactElement", "description": "Pass to render a leading element"},
|
28 | 38 | {"name": "trailingAccessory", "type": "ReactElement", "description": "Pass to render a trailing element"},
|
29 | 39 | {"name": "enableErrors", "type": "boolean", "description": "Should support showing validation error message"},
|
|
80 | 90 | "description": "Should show a character counter (works only with maxLength)"
|
81 | 91 | },
|
82 | 92 | {"name": "charCounterStyle", "type": "TextStyle", "description": "Pass custom style to character counter text"},
|
83 |
| - {"name": "placeholder", "type": "string", "description": "The placeholder for the field"}, |
84 |
| - {"name": "floatingPlaceholderColor", "type": "ColorType", "description": "The floating placeholder color"}, |
85 |
| - { |
86 |
| - "name": "floatingPlaceholderStyle", |
87 |
| - "type": "TextStyle", |
88 |
| - "description": "Custom style to pass to the floating placeholder" |
89 |
| - }, |
90 |
| - { |
91 |
| - "name": "floatOnFocus", |
92 |
| - "type": "boolean", |
93 |
| - "description": "Should placeholder float on focus or when start typing" |
94 |
| - }, |
95 |
| - {"name": "hint", "type": "string", "description": "A hint text to display when focusing the field"}, |
96 |
| - {"name": "color", "type": "ColorType", "description": "Input color"}, |
97 |
| - {"name": "placeholderTextColor", "type": "ColorType", "description": "Placeholder text color"}, |
98 | 93 | {
|
99 | 94 | "name": "formatter",
|
100 | 95 | "type": "(value) => string | undefined",
|
|
0 commit comments