Skip to content
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

Transition delay for expanding / collapsing #5

Open
guitarhero17 opened this issue Jul 11, 2023 · 0 comments
Open

Transition delay for expanding / collapsing #5

guitarhero17 opened this issue Jul 11, 2023 · 0 comments

Comments

@guitarhero17
Copy link

Hey @asbjornh !

I'd like to request a feature - would it be possible to add a new delay prop which would introduce a transition-delay ? Kind of like in this similar library. Currently I'm using a useDebounce hook to "slow down" the update of the boolean variable for isOpen, whenever I want to close the collapse with some delay. Something like:

<TinyCollapse isOpen={visible || debouncedVisible}>...</TinyCollapse>

But this feels a bit cumbersome. A dedicated delay property, ideally with separate values for expanding and collapsing, would be much more convenient.

Thank you :)

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

No branches or pull requests

1 participant