Skip to content

Date Range Picker ​

Basic

Loading...

With Shortcuts

Loading...

Static with Shortcuts

Loading...

<flint-date-range-calendar> ​

A dual-month calendar for range selection. Shows two months side-by-side (or stacked on narrow screens).

  • Tag: <flint-date-range-calendar>
  • Class: FlintDateRangeCalendar

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintDateRangeCalendar } from 'flint-ui';

Usage ​

html
<flint-date-range-calendar></flint-date-range-calendar>

Properties ​

PropertyAttributeTypeDefaultDescription
valuevalueDateRange[...EMPTY_RANGE]Current selected range [startISO, endISO].
minminstring''Minimum selectable date (ISO YYYY-MM-DD).
maxmaxstring''Maximum selectable date (ISO YYYY-MM-DD).
disableddisabledbooleanfalseDisables the calendar and prevents date selection.

Events ​

EventDetailDescription
flint-date-range-picker-select—{ detail: { value: DateRange } } on each click

CSS Custom Properties ​

PropertyDefault
--flint-font-family—
--flint-surface-1—
--flint-border-color—
--flint-text-color—
--flint-text-color-muted—
--flint-hover-color—
--flint-primary-color-light—
--flint-primary-color—
--flint-text-color-on-primary—
--flint-primary-color-hover—
--flint-input-bg—
--flint-border-radius-md—
--flint-input-disabled-bg—
--flint-input-placeholder-color—
--flint-border-radius-xl—
--flint-shadow-lg—
--flint-shadow-sm—
--flint-error-color—
--flint-primary-focus-ring—
--flint-error-focus-ring—

Methods ​

MethodDescription
navigateTo(iso: string)Navigate the calendar view to the month containing the given ISO date.

<flint-date-range-picker> ​

A date range picker combining a segmented field and a dual-month calendar.

  • Tag: <flint-date-range-picker>
  • Class: FlintDateRangePicker

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintDateRangePicker } from 'flint-ui';

Usage ​

html
<flint-date-range-picker></flint-date-range-picker>

Properties ​

PropertyAttributeTypeDefaultDescription
valuevalueDateRange[...EMPTY_RANGE]Selected range [startISO, endISO]. Empty strings mean unset.
labellabelstring'Date Range'Label shown above the field.
variantvariant'desktop' | 'mobile' | 'static' | 'auto''desktop'Variant: 'desktop' | 'mobile' | 'static' | 'auto'.
multiInputmulti-inputbooleanfalseUse a multi-input field (two separate fields) instead of single-input. Currently shows two simple text displays.
shortcutsshortcutsbooleanfalseShow shortcuts panel.
shortcutItemsshortcut-itemsShortcut[][]Custom shortcuts list. Defaults to built-in shortcuts when shortcuts=true.
minminstring''Minimum selectable date (ISO YYYY-MM-DD).
maxmaxstring''Maximum selectable date (ISO YYYY-MM-DD).
namenamestring''Form field name for hidden inputs.
disableddisabledbooleanfalseDisables the picker and prevents interaction.
readonlyreadonlybooleanfalseMakes the picker read-only (visible but not editable).
errorerrorbooleanfalseDisplays the picker in an error state.
helperTexthelper-textstring''Helper text shown below the field.

Events ​

EventDetailDescription
flint-date-range-picker-change—{ detail: { value: DateRange } } when range is committed

<flint-single-input-date-range-field> ​

A single-input field for entering a date range (start → end). Renders as "MM/DD/YYYY – MM/DD/YYYY" with six independently editable segments.

  • Tag: <flint-single-input-date-range-field>
  • Class: FlintSingleInputDateRangeField

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintSingleInputDateRangeField } from 'flint-ui';

Usage ​

html
<flint-single-input-date-range-field></flint-single-input-date-range-field>

Properties ​

PropertyAttributeTypeDefaultDescription
valuevalueDateRange[...EMPTY_RANGE]Controlled range value [startISO, endISO].
labellabelstring''Field label text.
namenamestring''Form field name used for hidden inputs.
minminstring''Minimum allowed date (ISO YYYY-MM-DD).
maxmaxstring''Maximum allowed date (ISO YYYY-MM-DD).
disableddisabledbooleanfalseDisables the field and prevents interaction.
readonlyreadonlybooleanfalseMakes the field read-only (visible but not editable).
errorerrorbooleanfalseDisplays the field in an error state.
helperTexthelper-textstring''Helper text shown below the field.

Events ​

EventDetailDescription
flint-date-range-picker-change—{ detail: { value: DateRange } } when both dates are complete
flint-date-range-picker-clear—fired when all segments are cleared

Methods ​

MethodDescription
setRange(range: DateRange)
clear()