Skip to content

feat(Calendar): add yearsPerPage prop - #7138

Merged
benjamincanac merged 1 commit into
v4from
feat/calendar-years-per-page
Oct 6, 2026
Merged

benjamincanac merged 1 commit into
v4from
feat/calendar-years-per-page

Conversation

@benjamincanac

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Reka UI has a yearsPerPage prop on YearPickerRoot and YearRangePickerRoot since 2.9.0, to change how many years the year view shows. Calendar only picked isYearDisabled and isYearUnavailable from them.

This exposes yearsPerPage and forwards it in the year view only, like the other year props.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ui Ready Ready Preview Oct 6, 2026 10:37am UTC
ui-repl Ready Ready Preview Oct 6, 2026 10:37am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c725fc9e-6dd5-41cd-89bc-75cfeb9bd8bc
📥 Commits

Reviewing files that changed from the base of the PR and between b1e89e8 and 7b46bc4.

⛔ Files ignored due to path filters (2)
  • test/components/__snapshots__/Calendar-vue.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/Calendar.spec.ts.snap is excluded by !**/*.snap
📒 Files selected for processing (3)
  • docs/content/docs/2.components/calendar.md
  • src/runtime/components/Calendar.vue
  • test/components/Calendar.spec.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codspeed

codspeed Bot commented Oct 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/calendar-years-per-page (7b46bc4) with v4 (b1e89e8)

Open in CodSpeed

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@7138

commit: 7b46bc4

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Client output of the apps in test/bundle, compared to the base branch.

Fixture JS (gzip) CSS (gzip)
nuxt 113.4 kB 27.1 kB
nuxt-detection 113.4 kB 10.5 kB
nuxt-full 831.2 kB (+13 B, +0.0%) 27.2 kB
vue 90.4 kB 25.2 kB
vue-detection 90.4 kB 8.7 kB
Raw sizes
Fixture JS CSS
nuxt 327.4 kB 199.3 kB
nuxt-detection 327.4 kB 61.3 kB
nuxt-full 2625.9 kB (+54 B, +0.0%) 199.6 kB
vue 272.3 kB 197.3 kB
vue-detection 272.3 kB 57.8 kB

@benjamincanac
benjamincanac merged commit cc4acae into v4 Oct 6, 2026
35 checks passed
@benjamincanac
benjamincanac deleted the feat/calendar-years-per-page branch October 6, 2026 14:48

This branch was successfully deployed

2 active deployments
Preview – ui — 7b46bc40 Deployed Oct 6, 2026 by vercel[bot]
Preview – ui-repl — 7b46bc40 Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant