feat(react-calendar-preview): implement Calendar, month/year pickers, and day grid components - #36629
Draft
Dmytro Kirpa (dmytrokirpa) wants to merge 2 commits into
Draft
Conversation
This was referenced Aug 25, 2026
|
Pull request demo site: URL |
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
calendar-preview-impl
branch
from
August 25, 2026 20:08
3fa04eb to
1addb6b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This is PR 2 of 3 in a stack that splits up #36618 ("feat: add non-compat and headless versions for Calendar") into smaller, independently reviewable pieces:
@fluentui/react-calendar-previewpackageCalendarcomponent family inreact-calendar-previewCalendartoreact-headless-components-preview, built on top of this PR's base hooksStack order:
master→calendar-preview-scaffold→calendar-preview-impl→headless-calendar. This PR is based on #36628 and only contains the diff on top of it (component implementation, tests, and stories).What's in this PR
The full
Calendarcomponent family for@fluentui/react-calendar-preview:Calendar,CalendarDay,CalendarMonth,CalendarYear, and their*GridCell/*GridRow/*GridHeaderCell/*GridHeaderRowsubcomponents (hook-based architecture:useX_unstable,renderX_unstable,useXStyles_unstable, plususeXBase_unstable/context-value hooks where the headless layer needs to re-use base state)apps/public-docsite-v9dependency on the new packagePrevious Behavior
Only #36628's empty package scaffold existed.
New Behavior
@fluentui/react-calendar-previewnow exposes a workingCalendarcomponent supporting day/week/work-week/month selection, month and year pickers, keyboard navigation, min/max/restricted dates, and localized formatting — same behavior as in the original PR #36618.Related Issue(s)
Split from #36618.