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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintDateRangeCalendar } from '@getufy/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.
localelocalestring''BCP 47 locale for month/day names (e.g. "en-US", "fr"). Uses browser default when unset.

Events ​

EventDetailDescription
flint-date-range-picker-select&#123; value: DateRange &#125;{ detail: { value: DateRange } } on each click

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

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-datepicker-z-index1400
--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): voidNavigate 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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintDateRangePicker } from '@getufy/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.
shortcutItemsshortcutItemsShortcut[][]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.
localelocalestring''BCP 47 locale for date formatting and month/day names (e.g. "en-US", "fr"). Uses browser default when unset.
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.
errorMessageerror-messagestring''Error message displayed below the field when in error state.

Events ​

EventDetailDescription
flint-date-range-picker-change&#123; value: DateRange &#125;{ detail: { value: DateRange } } when range is committed

CSS Parts ​

NameDescription
baseThe component's base wrapper element.
popoverThe popover element.
shortcutsThe shortcuts element.

<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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintSingleInputDateRangeField } from '@getufy/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.
errorMessageerror-messagestring''Error message displayed below the field when in error state.

Events ​

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

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

Methods ​

MethodDescription
setRange(range: DateRange): void
clear(): void