Skip to content

[Feature]: Add month & year view modes to <Calendar> component #2389

@kev-7777

Description

@kev-7777

Describe the feature

The current Calendar component supports only day-level selection.
To build common UI patterns (MonthPicker, YearPicker, DateRange presets), we need additional view modes.

View modes:
view: 'day' | 'month' | 'year'

Events:
@month-select(month: number)
@year-select(year: number)

Example: https://primevue.org/datepicker/#monthpicker

Proposed minimal implementation:

  • Add internal month grid (12 items)
  • Add internal year grid (e.g. 12–20 years)

Thanks for considering this enhancement!

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions