Skip to content

[UseRangeCalendar] - How to render multi month based om screen size #6479

Answered by reidbarber
Andershorp asked this question in Q&A
Discussion options

You must be logged in to vote

Since you're controlling the rendering, you can do this yourself without passing any options into the hooks. You can just detect the screen size, then conditionally render the second calendar based on the screen size.

Here is an example forked from our styled example from the docs: https://codesandbox.io/p/sandbox/optimistic-sound-27p9ht

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Andershorp
Comment options

@reidbarber
Comment options

@Andershorp
Comment options

Answer selected by Andershorp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants