-
Notifications
You must be signed in to change notification settings - Fork 10
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
Form Revolution #1889
Comments
@ti10le we could also change the import API like the following: import { Field } from '@marigold/components';
<Field.Text/>
<Field.TextArea/>
<Field.Checkbox/>
<Field.Select/> I could life with that 😅 |
What's the common API of Field Elements?
Plus the regular props that the form HTML element has |
This would be also good for me. Then we don't include the same things from field in every field component 😊 It would be clear that all of them a Field component. |
Yes, exactly 😄 question is how we document this and structure it inside of Do we create a Field/Form folder and put everything there? |
I would create a folder for every component like now but dont show the Field component in docs or storybook. Only together with the other part. Not all inside Field i think 🤔 |
Might be confusing for imports |
Why? Not publishing the Field folder |
@ti10le not sure what do you mean. I think our project structure has to reflect export, otherwise you'll have a hard time finding things. This would also mean that if we separate stuff in the documentation (e.g. forms, layout, content, ...) this should be reflected in side the project. |
Ok I think the way you want to do this would be good for me, too 😊 |
- no variants anymore - no disabled (not possible anyway) - improve a11y Ref #1889
- no variants anymore - no disabled (not possible anyway) - improve a11y Ref #1889
ℹ️ Note for later: Field.tsx and HelpText.tsx are not tested enough. Coverage is not 100% |
I would make only a |
Description
We have to go over the forms and unify their API!
New
<CheckboxGroup>
refa: <Checkbox> and <CheckboxGroup> #2016<RadioGroup>
feat: Accessible <Radio> and <RadioGroup> #2029Refactor
<label>
use Box (<Box as="label" variant="checkbox.value"/>
)<Field>
in<TextArea>
#1964width
from theme via prop feat: Addwidth
prop to fields to control width #2070Bugs
Delete
API
Make everything available under the "Field.<...>" API!Not doing this sinceField.Select.Option
is super long and weird to type. This doesn't make the usage of Marigold better.Consequences
Easier to use forms in Marigold 🤞
The text was updated successfully, but these errors were encountered: