- Notifications
You must be signed in to change notification settings - Fork22
React Material UI multi steps form with basic form validation logic.
License
NotificationsYou must be signed in to change notification settings
awran5/react-material-ui-step-form
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
React Material UI multi step form with basic formonChange validation logic. inspired byTraversy Media tutorial and using Material-uicheckout free template.
- Download or clone the repo:
git clone https://github.com/awran5/react-material-ui-step-form.git
- Material-UI v5 or higher
- React version supportsHooks
// src/Context.tsxconstvariant='standard'// `filled` | `outlined` | `standard`constmargin='normal'// `dense` | `none` | `normal`
typeValidationSchema=Record<string,{value?:anyerror?:stringrequired?:booleanvalidate?:'text'|'number'|'email'|'phone'|'zip'|'checkbox'|'select'minLength?:numbermaxLength?:numberhelperText?:string}>// src/initialValues.tsxconstinitialValues:ValidationSchema={yourFieldname:{value:'',// will be filled with field valueerror:'',// will be filled with error messagerequired:true,// if `false` field will be still validated but will not enable the `next` buttonvalidate:'text',// field validation logic (see types above)minLength:2,// validate min lengthmaxLength:20,// validate max lengthhelperText:'custom error message'// change the default error message (applied to `validate` types only)},{// another field}}
- Update: MUI v5
- fix: minor bugs
- style: cleaning up
- Refactor: code to Typescript
- Refactor: Validation logic, now you can control all validaton logic inside
src/initialValues.tsxfile - Update: app dependencies
- Add: React Context provides to manage Components state
- Add: Option to change all fields
variantandmarginthat applied toTextField - Add: eslint withairbnb style
- Add:Checkbox field
- Add:
Requiredfield logic
About
React Material UI multi steps form with basic form validation logic.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
