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

feat: polish controlled component #156

Merged
merged 6 commits into from
Aug 22, 2022
Merged

feat: polish controlled component #156

merged 6 commits into from
Aug 22, 2022

Conversation

zzmp
Copy link
Contributor

@zzmp zzmp commented Aug 22, 2022

  • Moves swap state control to a single prop, value
    • This mirrors the way that form components are controlled (with a value prop)
    • This improves the UX by making it harder to "partially" control the form by thinking all the props are optional
  • Adds new settings state control under a new prop, settings
    • Simplifies settings state and adds appropriate callbacks
  • Cleans up dead code surrounding settings

@zzmp zzmp requested a review from JFrankfurt August 22, 2022 19:08
@vercel
Copy link

vercel bot commented Aug 22, 2022

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

Name Status Preview Updated
widgets ✅ Ready (Inspect) Visit Preview Aug 22, 2022 at 7:08PM (UTC)

@vercel vercel bot temporarily deployed to Preview August 22, 2022 19:08 Inactive
@zzmp zzmp merged commit 9d12999 into main Aug 22, 2022
@github-actions
Copy link

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@zzmp zzmp deleted the polish-control branch September 14, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants