Skip to content

Commit b4775a1

Browse files
authored
TextField - fix api file (#2956)
1 parent 10327d9 commit b4775a1

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

src/components/textField/textField.api.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"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"
1111
],
1212
"props": [
13+
{"name": "color", "type": "ColorType", "description": "Input color"},
1314
{"name": "label", "type": "string", "description": "Field label"},
1415
{
1516
"name": "labelColor",
@@ -18,12 +19,21 @@
1819
},
1920
{"name": "labelStyle", "type": "TextStyle", "description": "Custom style for the field label"},
2021
{"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"},
2125
{"name": "floatingPlaceholder", "type": "boolean", "description": "Pass to add floating placeholder support"},
26+
{"name": "floatingPlaceholderColor", "type": "ColorType", "description": "The floating placeholder color"},
2227
{
2328
"name": "floatingPlaceholderStyle",
2429
"type": "TextStyle",
2530
"description": "Custom style for the floating placeholder"
2631
},
32+
{
33+
"name": "floatOnFocus",
34+
"type": "boolean",
35+
"description": "Should placeholder float on focus or when start typing"
36+
},
2737
{"name": "leadingAccessory", "type": "ReactElement", "description": "Pass to render a leading element"},
2838
{"name": "trailingAccessory", "type": "ReactElement", "description": "Pass to render a trailing element"},
2939
{"name": "enableErrors", "type": "boolean", "description": "Should support showing validation error message"},
@@ -80,21 +90,6 @@
8090
"description": "Should show a character counter (works only with maxLength)"
8191
},
8292
{"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"},
9893
{
9994
"name": "formatter",
10095
"type": "(value) => string | undefined",

0 commit comments

Comments
 (0)