You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| allowOnlyNumbers | boolean | no | true | Allows the user enter only numbers |
76
-
| clearOnSameDateClick | boolean | no | true | Controls whether the datepicker's state resets if the same date is selected in succession. |
77
-
| clearable | boolean | no | true | Allows the user to clear the value |
78
-
| filterDate | function | no | () => true | Function that receives each date and returns a boolean to indicate whether it is enabled or not |
79
-
| format | string | no | 'YYYY-MM-DD' | Specifies how the date will be formatted using the [date-fns' format](https://date-fns.org/v1.29.0/docs/format)|
80
-
| keepOpenOnClear | boolean | no | false | Keeps the datepicker open (or opens it if it's closed) when the clear icon is clicked |
81
-
| keepOpenOnSelect | boolean | no | false | Keeps the datepicker open when a date is selected |
82
-
| locale | string | no | 'en-US' | Filename of the locale to be used. PS: Feel free to submit PR's with more locales! |
83
-
| onBlur | function | no | () => {} | Callback fired when the input loses focus |
84
-
| onChange | function | no | () => {} | Callback fired when the value changes |
85
-
| pointing | string | no | 'left' | Location to render the component around input. Available options: 'left', 'right', 'top left', 'top right' |
86
-
| type | string | no | basic | Type of input to render. Available options: 'basic' and 'range' |
87
-
| datePickerOnly | boolean | no | false | Allows the date to be selected only via the date picker and disables the text input |
| allowOnlyNumbers | boolean | no | true | Allows the user enter only numbers |
79
+
| autoComplete | string | no | -- | Specifies if the input should have autocomplete enabled |
80
+
| clearOnSameDateClick | boolean | no | true | Controls whether the datepicker's state resets if the same date is selected in succession. |
81
+
| clearable | boolean | no | true | Allows the user to clear the value |
82
+
| filterDate | function | no | () => true | Function that receives each date and returns a boolean to indicate whether it is enabled or not |
83
+
| format | string | no | 'YYYY-MM-DD' | Specifies how the date will be formatted using the [date-fns' format](https://date-fns.org/v1.29.0/docs/format)|
84
+
| keepOpenOnClear | boolean | no | false | Keeps the datepicker open (or opens it if it's closed) when the clear icon is clicked |
85
+
| keepOpenOnSelect | boolean | no | false | Keeps the datepicker open when a date is selected |
86
+
| inline | boolean | no | false | Uses an inline variant, without the input and the features related to it, e.g. clearable datepicker |
87
+
| locale | string | no | 'en-US' | Filename of the locale to be used. PS: Feel free to submit PR's with more locales! |
88
+
| onBlur | function | no | () => {} | Callback fired when the input loses focus |
89
+
| onChange | function | no | () => {} | Callback fired when the value changes |
90
+
| pointing | string | no | 'left' | Location to render the component around input. Available options: 'left', 'right', 'top left', 'top right' |
91
+
| type | string | no | basic | Type of input to render. Available options: 'basic' and 'range' |
92
+
| datePickerOnly | boolean | no | false | Allows the date to be selected only via the date picker and disables the text input |
93
+
| value | Date\|Date[]| no | -- | The value of the datepicker |
88
94
89
95
### Form.Input Props
90
96
@@ -129,7 +135,6 @@ In order to customize the elements, you can override the styles of the classes b
129
135
- Improve accessibility
130
136
> @donysukardi did some work on accessibility in the BaseDatePicker, but I couldn't get it working correcly. Feel free to help on this!
131
137
- Add more tests (including e2e)
132
-
> The current threshold is pretty useless 😕
133
138
134
139
> Feel free to open issues and/or create PRs to improve other aspects of the library!
0 commit comments