Merge pull request #23392 from TomBarta/react-dates/add-verticalSpacing-to-SingleDatePicker

Update SingleDatePicker props types
This commit is contained in:
Ron Buckton
2018-02-08 20:33:57 -08:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -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,

View File

@@ -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}
/>
}
}