Skip to content

Collapse default open #471

Description

@itaiperi

Hi Benji,

Wanted to suggest an improvement to the Collapse component - a defaultOpen attribute, that will set the Collapse to be open by default on mount, but will have a default value of false, to keep backward compatibility of course.
This will enable to have the collapse open at the beginning, without taking full control over opening and closing from a controlling component, which can be cumbersome.

I've had several such use-cases over the past few weeks.

What do you say? I'm willing to implement this, if you'll give it the green light.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions