Datepicker

A date, a range, a week, a month, a quarter or a year, picked from a panel or typed into the field.

Anotomy

Structure of the date picker and how its internal parts are composed. These are its semantic parts, so they are also what the classNames and styles objects accept. The panel's parts go in a nested popup object.

DatePicker

DatePicker anotomy
NameDescription
1rootThe field's box: border, background, radius and padding. variant, size and status change it here.
2prefixThe node from prefix, before the date.
3inputThe text field showing the date in format, or the placeholder while empty.
4suffixThe calendar glyph at the end. suffixIcon replaces it.
5popup.containerThe panel itself: background, radius and shadow.
6popup.headerThe row with the month and year and the arrows that page through them.
7popup.bodyThe area under the header that holds the grid.
8popup.contentThe grid itself: weekday names and one cell per day. picker turns it into weeks, months, quarters or years.
9popup.itemOne cell. cellRender replaces what it draws.
10popup.footerThe row under the grid with the Today link, the OK button when needConfirm is set, and anything from renderExtraFooter.
11popup.rootThe positioned layer around the panel. It is portalled to <body>, so these keys are how you reach it.

DatePicker.RangePicker

The range picker takes the same keys. Its input and panel parts each appear twice.
RangePicker anotomy
NameDescription
1rootThe field's box, holding both inputs and the arrow between them.
2prefixThe node from prefix, before the start date.
3inputEach of the two text fields. The one being edited has the bar under it.
4suffixThe calendar glyph at the end.
5popup.containerThe panel holding both months.
6popup.headerA month's header. Each panel has one, and the arrows sit on the outer ends.
7popup.bodyA month's body.
8popup.contentA month's grid.
9popup.itemOne cell. The cells between the two dates take the range color.
10popup.footerThe row under both months, with Now and the confirm button.
11popup.rootThe positioned layer around the panel.