Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

CompareInputs

Date Picker in five frameworks

The same example, live in each framework. One core underneath, so they should behave the same.

Back to the Date Picker docs

Live

React

Loading19.3.1

Loading React…

No event yet

Vue

Loading3.5.44

Loading Vue…

No event yet

Svelte

Loading5.57.3

Loading Svelte…

No event yet

Solid

Loading2.0.0-rc.21

Loading Solid…

No event yet

Angular

Loading22.2.4

Loading Angular…

No event yet

The attributes each framework puts on the open popup, read from the page.

AttributeReactVueSvelteSolidAngular
roleClosedClosedClosedClosedClosed
aria-modalClosedClosedClosedClosedClosed
aria-labelledbyClosedClosedClosedClosedClosed
data-openClosedClosedClosedClosedClosed

Nothing open. Open a tile to fill its column.

Each tile sets modal to false, so five popups can be open at once; that is why aria-modal reads absent.

The same example, in each framework

Each tile above runs this file.

DatePicker.tsx
import { Calendar } from '@hamur/react/calendar'
import { DatePicker } from '@hamur/react/date-picker'
import { Field } from '@hamur/react/field'

export default function DatePickerExample() {
  return (
    <Field.Root className="field">
      <Field.Label>Due date</Field.Label>
      <DatePicker.Root locale="en-US" today="2026-11-07">
        <DatePicker.Control className="date-field date-picker-control">
          <DatePicker.Input className="date-field-input">
            {({ segments }) =>
              segments.map((segment) => (
                <DatePicker.Segment
                  key={segment.index}
                  segment={segment}
                  className="date-field-segment"
                />
              ))
            }
          </DatePicker.Input>
          <DatePicker.Clear className="date-field-clear">
            ×
          </DatePicker.Clear>
          <DatePicker.Trigger className="date-picker-trigger">
            <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
              <path d="M2.5 3.5h11v10h-11zM2.5 6.5h11M5.5 1.5v3M10.5 1.5v3" />
            </svg>
          </DatePicker.Trigger>
        </DatePicker.Control>
        <DatePicker.Portal>
          <DatePicker.Positioner sideOffset={8}>
            <DatePicker.Popup className="popover date-picker-popup">
              <DatePicker.Calendar className="calendar">
                <div className="calendar-header">
                  <Calendar.PrevButton className="calendar-nav">‹</Calendar.PrevButton>
                  <Calendar.Heading className="calendar-heading" />
                  <Calendar.NextButton className="calendar-nav">›</Calendar.NextButton>
                </div>
                <Calendar.Grid className="calendar-grid">
                  {(grid) => (
                    <>
                      <Calendar.GridHeader>
                        <Calendar.GridRow>
                          {grid.weekdays.map((weekday) => (
                            <Calendar.HeaderCell
                              key={weekday.index}
                              weekday={weekday.index}
                              className="calendar-weekday"
                            />
                          ))}
                        </Calendar.GridRow>
                      </Calendar.GridHeader>
                      <Calendar.GridBody>
                        {grid.weeks.map((week, index) => (
                          <Calendar.GridRow key={index}>
                            {week.map((day) => (
                              <Calendar.Cell
                                key={day.date}
                                date={day.date}
                                className="calendar-cell"
                              >
                                <Calendar.Day className="calendar-day" />
                              </Calendar.Cell>
                            ))}
                          </Calendar.GridRow>
                        ))}
                      </Calendar.GridBody>
                    </>
                  )}
                </Calendar.Grid>
              </DatePicker.Calendar>
              <DatePicker.Close className="button date-picker-close">
                Close
              </DatePicker.Close>
            </DatePicker.Popup>
          </DatePicker.Positioner>
        </DatePicker.Portal>
      </DatePicker.Root>
    </Field.Root>
  )
}

Measured, per framework

The frameworks against each other only, on the same machine and the same example.

FrameworkTestsSizeOpenCloseMemory
ReactNot measured yetNot measured yetNot measured yetNot measured yetNot measured yet
Vue12Not measured yetNot measured yetNot measured yetNot measured yet
Svelte14Not measured yetNot measured yetNot measured yetNot measured yet
Solid14Not measured yetNot measured yetNot measured yetNot measured yet
Angular12Not measured yetNot measured yetNot measured yetNot measured yet

Size is the gzip of the component's entry with core and dom. Open, Close and Memory are medians in Chromium 156 on Apple M3 Max; Memory is what one open and close leaves on the heap. Tests are Date Picker's passing tests in each framework's suites. [N] is a value not measured yet.

Same props, five spellings

The DatePicker.Root names in each framework's own syntax.

PropReactVueSvelteSolidAngular
valuevalue—valuevalue[value]
defaultValuedefaultValue—defaultValuedefaultValue[defaultValue]
onValueChangeeventonValueChange@value-changeonValueChangeonValueChange(valueChange)
autoCompleteautoComplete—autoCompleteautoComplete[autoComplete]
openopenopenopenopen[open]
defaultOpendefaultOpendefault-opendefaultOpendefaultOpen[defaultOpen]
onOpenChangeeventonOpenChange@open-changeonOpenChangeonOpenChange(openChange)
onOpenChangeCompleteeventonOpenChangeComplete@open-change-completeonOpenChangeCompleteonOpenChangeComplete(openChangeComplete)
actionsRefactionsRefactions-refactionsRefactionsRef[actionsRef]
modalmodalmodalmodalmodal[modal]
closeOnSelectcloseOnSelectclose-on-selectcloseOnSelectcloseOnSelect[closeOnSelect]
minminminminmin[min]
maxmaxmaxmaxmax[max]
isDateUnavailableisDateUnavailableis-date-unavailableisDateUnavailableisDateUnavailable[isDateUnavailable]
isDateDisabledisDateDisabledis-date-disabledisDateDisabledisDateDisabled[isDateDisabled]
localelocalelocalelocalelocale[locale]
firstDayOfWeekfirstDayOfWeekfirst-day-of-weekfirstDayOfWeekfirstDayOfWeek[firstDayOfWeek]
visibleMonthvisibleMonthvisible-monthvisibleMonthvisibleMonth[visibleMonth]
onVisibleMonthChangeeventonVisibleMonthChange@visible-month-changeonVisibleMonthChangeonVisibleMonthChange(visibleMonthChange)
visibleMonthsvisibleMonthsvisible-monthsvisibleMonthsvisibleMonths[visibleMonths]
pageBehaviorpageBehaviorpage-behaviorpageBehaviorpageBehavior[pageBehavior]
fixedWeeksfixedWeeksfixed-weeksfixedWeeksfixedWeeks[fixedWeeks]
todaytodaytodaytodaytoday[today]
timeZonetimeZonetime-zonetimeZonetimeZone[timeZone]
labelslabelslabelslabelslabels[labels]
forceLeadingZerosforceLeadingZerosforce-leading-zerosforceLeadingZerosforceLeadingZeros[forceLeadingZeros]
placeholderValueplaceholderValueplaceholder-valueplaceholderValueplaceholderValue[placeholderValue]
autoAdvanceautoAdvanceauto-advanceautoAdvanceautoAdvance[autoAdvance]
segmentRolesegmentRolesegment-rolesegmentRolesegmentRole[segmentRole]
onIncompleteChangeeventonIncompleteChange@incomplete-changeonIncompleteChangeonIncompleteChange(incompleteChange)
disableddisableddisableddisableddisabled[disabled]
readOnlyreadOnlyread-onlyreadOnlyreadOnly[readOnly]
requiredrequiredrequiredrequiredrequired[required]
invalidinvalidinvalidinvalidinvalid[invalid]
namenamenamenamename[name]
formformformformform[form]
inputRefinputRefinput-refinputRefinputRef[inputRef]
childrenchildren#defaultchildrenchildrenng-content