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

Add Form component #401

Closed
wants to merge 11 commits into from
Closed

Add Form component #401

wants to merge 11 commits into from

Conversation

mkernohanbc
Copy link
Contributor

Moving this POC from #398 into a draft PR for discussion.

This PR adds a new Form component, based on RAC Form. An example instance and documentation page in Storybook is also included.

The Form component is intended to be used as a wrapper around other components, to provide additional support for data validation and submission and form styling. It renders an HTML <form> element.

By default, the Form component renders without any styling of its own. The className prop can be used to style the form as a whole.

Some boilerplate CSS is included (see Form.css). This is currently only used to style the example form in Storybook.

@mkernohanbc mkernohanbc added the enhancement New feature or request label Jul 3, 2024
@mkernohanbc mkernohanbc self-assigned this Jul 3, 2024
@mkernohanbc mkernohanbc linked an issue Jul 3, 2024 that may be closed by this pull request
@mkernohanbc mkernohanbc requested a review from ty2k July 3, 2024 20:27
@mkernohanbc mkernohanbc changed the title Add form wrapper component Add Form component Jul 3, 2024
@mkernohanbc
Copy link
Contributor Author

Did a rebase, thought better of it. Cherry-picked work from this branch into #409 instead. Closing this draft PR.

@mkernohanbc mkernohanbc deleted the 398-form-wrapper branch July 24, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form wrapper
2 participants