Skip to content

Add currentDate, showCurrentDate and currentDateClassName props#303

Open
davidsmorais wants to merge 2 commits into
shadcnblocks:mainfrom
davidsmorais:patch-1
Open

Add currentDate, showCurrentDate and currentDateClassName props#303
davidsmorais wants to merge 2 commits into
shadcnblocks:mainfrom
davidsmorais:patch-1

Conversation

@davidsmorais

Copy link
Copy Markdown

Description

  • adds currentDate prop to the CalendarProvider.
  • adds showCurrentDate and currentDateClassName props to CalendarBody

Usage

  • Passing currentDate to the CalendarProvider overrides today's date.
  • Passing showCurrentDate makes the current date (either today or the date provided to the context) highlighted.
  • To have more control over how the date is highlighted, one can pass the currentDateClassName prop

Related Issues

None

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation, if necessary.
  • I have added tests that prove my fix is effective or my feature works.
  • New and existing tests pass locally with my changes.

Screenshots (if applicable)

Additional Notes

…lendar

## Summary
- adds `currentDate` prop to the `CalendarProvider`.
- adds `showCurrentDate` and `currentDateClassName` props to `CalendarBody`

## Usage
- Passing `currentDate` to the `CalendarProvider` overrides today's date.
- Passing `showCurrentDate`  makes the current date (either today or the date provided to the context) highlighted.
- To have more control over how the date is highlighted, one can pass the `currentDateClassName` prop
Add props for current date handling in calendar
@vercel

vercel Bot commented Dec 11, 2025

Copy link
Copy Markdown

@davidsmorais is attempting to deploy a commit to the Kibo Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant