New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<DayInput> component #213

Closed
gpbl opened this Issue Sep 18, 2016 · 0 comments

Comments

1 participant
@gpbl
Owner

gpbl commented Sep 18, 2016

(Followup from #98)

Since they are a lot of code, the examples in http://www.gpbl.org/react-day-picker/examples/?input and http://www.gpbl.org/react-day-picker/examples/?overlay should be placed in a new component included with this library.

I'd like to discuss better the API, I'm thinking something like:

<DayPickerInput format="L" />

This component would create a container div containing an input field bound to a DayPicker component. Some props must be spread to the input, others to the DayPicker.

I'm also thinking about a RangeDayInput working with two DayInput components (maybe related to #204?).

This component would require the moment peer dependency.

  • create component
  • add unit tests
  • update docs
  • update examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment