Skip to content

Transition delay for expanding / collapsing #5

@guitarhero17

Description

@guitarhero17

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions