Skip to main content

Attributes

str
The identifier used to retrieve the widget value from the settings.
str
The label of the input widget.
Literal['single', 'range']
default:"'single'"
Selection mode. "single" selects one date, "range" selects a start and end date.
str | date | tuple[str | date, str | date] | None
The initial value. For "single" mode, pass an ISO date string or date object. For "range" mode, pass a tuple of two values (start, end).
str | date | None
Minimum selectable date. Dates before this are disabled in the calendar.
str | date | None
Maximum selectable date. Dates after this are disabled in the calendar.
str | None
Display format string using date-fns format tokens (e.g. "yyyy/MM/dd").
str | None
Placeholder text shown when no date is selected.
str
The tooltip text shown when hovering over the tooltip icon next to the label.
str
The text displayed underneath the input widget.
Since version 2.9.6.

Usage

Single date
Date range