Per-day Content
Show a price or any text under the day number. This page documents @pglejzer/datepicker-ui, the companion of timepicker-ui.
Prices on weekdays
#calendar.renderDate returns a string, a DOM node, or null for no content. A string is always text, never HTML. The text is added to the accessible name of the day. Here every weekday shows a price.
renderDate only draws the cell, so call the same function in onConfirm to read the price of the picked date.
In a range picker
#The same function works in range mode.
Note
Cells with content are taller, so the calendar grows. Keep the text short, such as a price or a count.