Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Repository files navigation

React Material UI multi step form with basic formonChange validation logic. inspired byTraversy Media tutorial and using Material-uicheckout free template.


screenshot

Instructions

  • Download or clone the repo:
git clone https://github.com/awran5/react-material-ui-step-form.git

Dependencies

// src/Context.tsxconstvariant='standard'// `filled` | `outlined` | `standard`constmargin='normal'// `dense` | `none` | `normal`

Example

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}}

Changelog - 10/2021

  • Update: MUI v5
  • fix: minor bugs
  • style: cleaning up

Changelog - 07/2021

  • Refactor: code to Typescript
  • Refactor: Validation logic, now you can control all validaton logic insidesrc/initialValues.tsx file
  • Update: app dependencies
  • Add: React Context provides to manage Components state
  • Add: Option to change all fieldsvariant andmargin that applied toTextField
  • Add: eslint withairbnb style
  • Add:Checkbox field
  • Add:Required field logic


Edit react-material-ui-step-form

About

React Material UI multi steps form with basic form validation logic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp