-
Hello, However, if you combine this with I think it would be very helpful to be able to set a footer that is unique to the whole component. Thanks for this great date picker, one of the best I've tried. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It's only after posting this that I realize that you could simply add whatever you want to the div containing the So, probably not the smartest suggestion ;) |
Beta Was this translation helpful? Give feedback.
-
@bcalou indeed the footer is applied to each calendar. To get only one element below, just add a wrapper around DayPicker: <div>
<DayPicker />
<form>
<input name="from"> <input name="to">
</form>
</div> |
Beta Was this translation helpful? Give feedback.
It's only after posting this that I realize that you could simply add whatever you want to the div containing the
DayPicker
component, outside of theDayPicker
itself.I'm using
react-popper
to make the picker appear and I somehow conviced myself that everything inside the popper was handled byDayPicker
, which is false.So, probably not the smartest suggestion ;)
(but I can't close it myself).