Skip to content

Programmatically set the visible month #5259

Answered by mattvick
mattvick asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like the prop I was overlooking is defaultFocusedValue. I've solved the problem I was having by setting defaultFocusedValue to the first day of the first month I want to be visible, and passing this to useCalendar(). The calendar then displays that month.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mattvick
Comment options

You must be logged in to vote
1 reply
@mattvick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant