-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media query collapsed #135
Comments
If you're not server-side rendering, you can skip the const [isExpanded, setisExpanded] = useState<boolean>(window.innerWidth > 700);
const { getCollapseProps, getToggleProps } = useCollapse({isExpanded}); You're also not supposed to use You can also use the |
Can you help with a sample code ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couldn't find a way to make the dropdown component closed on mobile and open on the desktop without transition.
It works as I expected on mobile, but due to update from useEffect, there's transition on desktop as it's set to open
With this code above, there's a transition on desktop when component mounts
Screen.Recording.2023-01-28.at.08.04.24.mov
The text was updated successfully, but these errors were encountered: