mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge pull request #23392 from TomBarta/react-dates/add-verticalSpacing-to-SingleDatePicker
Update SingleDatePicker props types
This commit is contained in:
5
types/react-dates/index.d.ts
vendored
5
types/react-dates/index.d.ts
vendored
@@ -146,6 +146,9 @@ declare namespace ReactDates {
|
||||
customInputIcon?: string | JSX.Element,
|
||||
noBorder?: boolean,
|
||||
block?: boolean,
|
||||
small?: boolean,
|
||||
regular?: boolean,
|
||||
keepFocusOnInput?: boolean,
|
||||
|
||||
// calendar presentation and interaction related props
|
||||
renderMonth?: (day: momentPropTypes.momentObj) => (string | JSX.Element),
|
||||
@@ -163,6 +166,8 @@ declare namespace ReactDates {
|
||||
hideKeyboardShortcutsPanel?: boolean,
|
||||
daySize?: number,
|
||||
isRTL?: boolean,
|
||||
verticalSpacing?: number,
|
||||
verticalHeight?: number| null,
|
||||
|
||||
// navigation related props
|
||||
navPrev?: string | JSX.Element,
|
||||
|
||||
@@ -61,6 +61,11 @@ class SingleDatePickerFullTest extends React.Component {
|
||||
orientation="horizontal"
|
||||
monthFormat="MM"
|
||||
renderDayContents={day => day.toString()}
|
||||
verticalSpacing={4}
|
||||
keepFocusOnInput={true}
|
||||
verticalHeight={5}
|
||||
regular={true}
|
||||
small={true}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user