A calendar that picks a day, several days or a range; three pickers built on it; and a table that sorts, filters, selects and pages over plain rows. Dates are "YYYY-MM-DD" strings everywhere.
Calendar
With a day in focus: arrows move by day and week, PageUp and PageDown by month, Home and End to the ends of the week, Enter or Space picks.
One dayselected= is a string, "" for none; a press on the picked day unpicks it. month= is the month on show, written back as it is turned.
Dec 2026
SuMoTuWeThFrSa
selected
""
month
(this month)
0 picks
Several daysmode="multiple": selected= is a list, kept in order.
Jun 2025
SuMoTuWeThFrSa
selected
2025-06-12
2025-06-18
2 days
A range over two monthsmode="range": selected= is {from, to}. With a whole range picked, the next press starts a new one; a second press before the first swaps the ends. The months go under one another on a phone.
Jan 2025
SuMoTuWeThFrSa
Feb 2025
SuMoTuWeThFrSa
7Nights
01-28Check in
02-04Check out
selected
{from: "2025-01-28", to: "2025-02-04"}
Bounds and days offNothing before 3 June or after 18 July, not the 11th or 12th, and no weekends. The keyboard steps over them; the month buttons stop at the bounds.
Jun 2025
SuMoTuWeThFrSa
selected
2025-06-10
min 2025-06-03
max 2025-07-18
weekends off
Month and year selectscaptionLayout="dropdown", with the years from fromYear to toYear.
SuMoTuWeThFrSa
selected
2023-12-25
Week start, outside days, months, childrenThe three controls are the calendar's props. What is written under Calendar is shown under the months: here, two buttons of the page's own.
weekStartsOn
showOutsideDays
numberOfMonths
selected
""
Dec 2026
MoTuWeThFrSaSu
Date pickers
Each is its button and its popover in one: a press opens a calendar with the keyboard on the picked day. The button shows the date the reader's way.
Date pickerPicking a day closes it. With captionLayout="dropdown" it is good for a date of birth; off=true disables it.
Basic
Date of birthmonth and year selects
off=true
picked · birth
"" · ""
With presets and boundspresets= are buttons under the calendar: {label, days} from today, or {label, value}. min= is today, so the past cannot be picked. change= counts.
due
""
changed 0 times
Date range pickervalue= is {from, to}. It stays open until a press outside or Escape; a preset closes it. A range preset is {label, days} (negative: the last n days) or {label, from, to}.
Two months, presets
numberOfMonths=1
trip
{from: "", to: ""} · 0 nights
report
{from: "", to: ""}
A field that reads typingTry 6/12/2025, June 12 2025, 12 June 2025, tomorrow. A date writes value; anything else turns the border red and leaves value alone. The button opens the calendar.
typed
2025-06-12
Data table
DataTable takes columns and rows and keeps its own sort, hidden columns, filter text and page. A cell is drawn by its column's type: text, number, badge, date, actions.
PaymentsPress a heading to sort (again: descending; again: not at all). The filter searches email and status over every row. Tick rows, hide columns, change the page size, and use a row's menu: Delete and Mark as paid change the rows.
Toggle columns
Actions
success
ken99@example.com
Mar 14, 2025
$316.00
Actions
success
abe45@example.com
Jan 2, 2025
$242.00
Actions
processing
monserrat44@example.com
Dec 30, 2024
$837.00
Actions
success
silas22@example.com
Feb 11, 2025
$874.00
Actions
failed
carmella@example.com
May 5, 2025
$721.00
Actions
0 of 12 row(s) selected.
Rows per page
Page 1 of 3
12 rows
selected
[]
rowAction
nothing yet
Sticky header, every row, several sortspagination=false shows all the rows; height= is the most the box grows to, and the rows scroll under the header. multiSort=true makes each press add to the sort: try Status, then Amount.
The same payments as above, live.
success
316
ken99@example.com
success
242
abe45@example.com
processing
837
monserrat44@example.com
success
874
silas22@example.com
failed
721
carmella@example.com
pending
125.5
ada@example.com
processing
1,299
grace@example.com
failed
64
linus@example.com
pending
410
barbara@example.com
success
242
dennis@example.com
pending
58
edsger@example.com
success
990
margaret@example.com
No rowsempty= is what the table says when there is nothing. rowKey names the field that tells rows apart; align and width are a column's.
Name
Role
Joined
No people yet. Add one.
0 rows
The parts, on a table of your ownFor cells DataTable cannot draw (here, a progress bar), build the table and use its parts: each takes the state it changes as props, written back. The header box is "mixed" when only some rows of the page are ticked.