Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Date Range Picker

A date field that opens one or more month calendars for picking a start and an end date.

ComponentsDate Range Picker
inputinteractivebeta
<arc-date-range-picker>

Overview

DateRangePicker is DatePicker for a start and end date. The read-only field shows the range as "Jan 5 – Feb 2, 2026", while `start` and `end` hold ISO dates (YYYY-MM-DD). `value` joins them as an ISO 8601 interval ("2026-01-05/2026-02-02"), and that string is what submits with the form under `name`. `form.reset()` restores the initial range. The first click, or Enter on a focused day, sets the start. Until you pick the end, hovering or focusing another day previews the range. The second click sets the end, swapping the two if it's earlier, fires `arc-change` with the interval as `value` plus `start` and `end`, and closes the popup. A third click starts a new range. `months` sets how many month panels show (2 by default). They sit side by side and stack when the popup is too narrow, with one pair of previous and next buttons. `presets` adds a rail of quick ranges on the left. Each entry is `{ label, days }` and selects the last `days` days ending today, fires `arc-change` and closes the popup.

Guidelines

Do

  • Add presets for the ranges people pick most, such as 7, 30 and 90 days
  • Send `start` and `end`, or the interval `value`, to APIs. Never parse the display text
  • Set `min` and `max` when only some dates have data, as in a report
  • Set `months="1"` in narrow places, such as a filter popover, where two panels would overflow

Don't

  • Don't use it for a single date. Use DatePicker
  • Don't treat the first click as a value. `arc-change` only fires once the end date is chosen
  • Don't build your own preset buttons when `presets` does the job
  • Don't set `min` later than `max`. Every day is disabled

Features

  • The day grids are one tab stop. Arrow keys, Home, End, Page Up and Page Down move focus and turn the month at the edges
  • The start and end days get ", range start" and ", range end" added to their labels
  • A polite live region announces progress, such as "Start date set. Choose end date."
  • Escape closes the popup and puts focus back in the field. A click outside also closes it
  • `min` and `max` dim and disable days outside the range, and `required` keeps the field invalid until both dates are set
  • The popup renders in the top layer, so an `overflow: hidden` ancestor doesn't clip it

Preview

Usage

This component needs JavaScript. Use the Web Component or a framework wrapper.

<arc-date-range-picker
  label="Reporting Period"
  presets='[{"label":"Last 7 days","days":7},{"label":"Last 30 days","days":30}]'
></arc-date-range-picker>

API

autoValidatesbooleanfalse
Runs its own constraint logic and owns the whole validity flag set.
valuestring
Read-derived ISO 8601 interval ("start/end") when both dates are set, otherwise an empty string. This is the value submitted with forms. Assigning "start/end" sets both dates.
localestring''
BCP 47 tag used for month and weekday names. Defaults to the document's lang, then the browser's language.
first-day-of-weeknumber0
Which day the week starts on, 1 = Monday … 7 = Sunday. Defaults to the locale's own convention.
startstring''
Range start date as an ISO string (YYYY-MM-DD). Empty when unset. Set both start and end to pre-select a range.
endstring''
Range end date as an ISO string (YYYY-MM-DD). Empty when unset or while an end date is pending.
namestring''
Form field name used when the interval value is submitted with a form.
minstring''
Minimum selectable date as an ISO string. Earlier days are dimmed and non-interactive.
maxstring''
Maximum selectable date as an ISO string. Later days are dimmed and non-interactive.
placeholderstring'Select date range'
Placeholder text shown in the input when no range is selected.
disabledbooleanfalse
Disables the picker, reducing opacity and preventing the popup from opening.
labelstring''
Label text rendered above the input in uppercase accent font styling.
monthsnumber2
Number of month panels shown in the popup. Panels sit side by side and stack vertically when the popup is too narrow.
presetsArray<{label:string,days:number}>[]
Quick ranges rendered as a left rail. Each preset selects the last N days ending today and closes the popup. Hidden when empty.
requiredbooleanfalse
Marks the control invalid (valueMissing) until a complete range is selected.
openbooleanfalse
Whether the calendar dropdown is visible. Reflected so it can be opened programmatically or styled from CSS. Held at false while disabled.
size'sm' | 'md' | 'lg''md'
Control size. md is the default; sm and lg scale the field padding.
formAssociatedbooleantrue
propertiesobject{ // flag(), unlike `disabled`. The exclusion in props.js is specifically // about form-associated *platform* semantics: a `disabled` content // attribute that is merely present makes the element actually disabled // per the HTML spec, and formDisabledCallback assigns the property back, // so no converter can win. Neither of these is platform-mapped: // `required` is enforced by _computeValidity() below and `readonly` by // each component's own interaction handlers, so the stock converter buys // nothing here and costs the usual bug: `required="false"` read as true, // blocking submission of a form the author meant to leave optional. // Finding #48's shape, across all 26 form controls at once. required: flag(false), readonly: flag(false), }
Lit merges static properties up the prototype chain, so every consumer gets these without declaring them. required participates in constraint validation below; readonly reflects for styling and is enforced by each component's interaction handlers (the mixin can't know which gestures mutate state).
form
validity
validationMessage
readonlybooleanfalse

Methods

checkValidity()boolean
Whether the control currently satisfies its constraints, per the native constraint-validation API. Fires invalid on the element when it does not, and reports nothing to the user.
reportValidity()boolean
As checkValidity(), but also shows the browser's validation message against the control when it fails.

Events

arc-changedetail:{ value: string, start: string, end: string }
Fired when a complete range is committed (second day clicked or preset applied). detail.value is the ISO 8601 interval string, the same shape as the value property; start and end carry the two ends separately.

See also