Function: YearsDropdown()

May 8, 2026 ยท View on GitHub

YearsDropdown(props): Element

Defined in: packages/react-day-picker/src/components/YearsDropdown.tsx:13

Render a dropdown to navigate between years in the calendar.

Parameters

ParameterType
props{ options?: DropdownOption[]; } & Omit<SelectHTMLAttributes<HTMLSelectElement>, "children">

Returns

Element

See

https://daypicker.dev/guides/custom-components

Contents

  1. 1Parameters
  2. 2Returns
  3. 3See