这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: add isOpen prop for disclosure #3016

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

Closed
wants to merge 1 commit into from
Closed

feat: add isOpen prop for disclosure #3016

wants to merge 1 commit into from

Conversation

abdelkd
Copy link

@abdelkd abdelkd commented Feb 28, 2024

This PR would add ability to change disclosure state without the use of button and without wrapping the button in a disclosure. Something like changing the state externally. by providing state to isOpen the disclosure will update its own state whenever the provided prop changes.

Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 8:23pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 8:23pm

@RobinMalfait
Copy link
Member

RobinMalfait commented Apr 4, 2024

Hey!

I appreciate the PR, but we want to tackle the controlled vs uncontrolled components API all at once for all components where it makes sense, such that we can have an API that's consistent and feels familiar between the components. This will require some work on our side to make sure that we find an API that fits for these components.

For that reason, I'm going to close this PR for now. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants