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

Implement Label and FieldSet components + form control updates #151

Merged
merged 17 commits into from
Feb 19, 2025

Conversation

mkrause
Copy link
Collaborator

@mkrause mkrause commented Feb 17, 2025

This PR adds two new components: Label and FieldSet, corresponding to the native HTML <label> and <fieldset> elements. Additionally, it turns RadioGroup and CheckboxGroup into proper form controls, with (1) their own state management, (2) both uncontrolled and controlled usage, and (3) automatically communicating state changes and props like name and form to the subcomponents through context.

Follow ups:

nighto added a commit that referenced this pull request Feb 17, 2025
@mkrause mkrause self-assigned this Feb 19, 2025
@mkrause mkrause added this to the Baklava v1.0 milestone Feb 19, 2025
@mkrause mkrause changed the title Implement Label component Implement Label and FieldSet components + form control updates Feb 19, 2025
@mkrause mkrause requested a review from nighto February 19, 2025 13:01
@mkrause mkrause marked this pull request as ready for review February 19, 2025 13:01
@mkrause mkrause requested a review from nighto February 19, 2025 15:37
Copy link
Collaborator

@nighto nighto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@mkrause mkrause merged commit d1118b0 into master Feb 19, 2025
2 checks passed
@mkrause mkrause deleted the mkrause/250216-label-component branch February 19, 2025 17:56
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