Skip to content

Commit 77d8e33

Browse files
committed
Added validRange prop
1 parent 5f29b60 commit 77d8e33

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docusaurus/docs/date-picker/input-date-picker.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ The label used to display in the component.
5151
`Type: Date | undefined`
5252
The value used to populate the component.
5353

54+
**inputMode (Required)**
55+
`Type: String`
56+
The type of input needed for the the picker component.
57+
5458
**onChange**
5559
`Type: Function`
5660
Callback event when the component date mask length matches the text input length.
@@ -59,14 +63,18 @@ Callback event when the component date mask length matches the text input length
5963
`Type: Function`
6064
Callback event when the component text input changes.
6165

62-
**inputMode (Required)**
63-
`Type: String`
64-
The type of input needed for the the picker component.
65-
6666
**mode**
6767
`Type: 'flat' | 'outlined'`
6868
See [react-native-paper text-input](https://callstack.github.io/react-native-paper/text-input.html#mode).
6969

70+
**validRange**
71+
`Type: {
72+
startDate: Date | undefined,
73+
endDate: Date | undefined,
74+
disabledDates: Date[] | undefined
75+
}`
76+
Limits which dates the user can navigate to and where events can go. Dates outside of the valid range will be grayed-out.
77+
7078
**withDateFormatInLabel**
7179
`Type: boolean | undefined`
7280
Flag indicating if the date format should be inside the components label.

0 commit comments

Comments
 (0)