Skip to content

Extend and document Calendar component#636

Merged
mkernohanbc merged 10 commits intomainfrom
619-calendar
Mar 11, 2026
Merged

Extend and document Calendar component#636
mkernohanbc merged 10 commits intomainfrom
619-calendar

Conversation

@mkernohanbc
Copy link
Copy Markdown
Contributor

This PR expands and documents the basic implementation of the Calendar component that shipped with DatePicker in 0.7.0.

Docs and examples are included in Storybook and the Vite app. This change does not necessitate any refactoring to DatePicker, which consumes Calendar internally.

The major change is adding new logic and styling to display multiple CalendarGrid elements at the same time within a single Calendar. This implementation follows React Aria's example here.

The visibleDuration prop controls how many grids are displayed. The component will now only render pagination buttons for the first (decrement button) and last (increment button) grid item:

Screenshot 2026-02-19 at 2 38 01 PM

Multiple grids will collapse into a vertical layout at small screen sizes:

Screenshot 2026-02-19 at 2 40 55 PM

@mkernohanbc mkernohanbc added this to the Components v0.7.0 milestone Feb 19, 2026
@mkernohanbc mkernohanbc self-assigned this Feb 19, 2026
@mkernohanbc mkernohanbc added the Components Changes or issues affect the design-system-react-components package label Feb 19, 2026
@mkernohanbc mkernohanbc linked an issue Feb 19, 2026 that may be closed by this pull request
@mkernohanbc mkernohanbc requested a review from ty2k February 19, 2026 22:46
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome component! 👏 One minor change request to remove the hard-coded "UTC" value in the useDateFormatter() hook options.

Comment thread packages/react-components/src/components/Calendar/Calendar.tsx Outdated
Comment thread packages/react-components/src/components/Calendar/Calendar.css
@mkernohanbc mkernohanbc requested a review from ty2k March 10, 2026 16:33
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀 🚀

@mkernohanbc mkernohanbc merged commit 80f4a91 into main Mar 11, 2026
5 checks passed
@mkernohanbc mkernohanbc deleted the 619-calendar branch March 11, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Components Changes or issues affect the design-system-react-components package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar

2 participants