Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Formik and MDBinput textarea

Colin Mcleod pro asked 3 years ago


Anyone using formik with mdb-react-ui-kit? If so, how are you passing it to "as" :

my code for a typical input is below:

                        <Field as={MDBInput} label='Additional notes' type="textarea" name="content" className='form-control' />

Pretty new to react, any input would be appreciated.


Colin Mcleod pro answered 3 years ago


Nevermind, got it! key was the component prop.

                                                <Field as={MDBInput} placeholder="Additional Comments" component="textarea" name="comments" className='form-control' rows='3'/>


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 1.4.0
  • Device: ANY
  • Browser: ANY
  • OS: ANY
  • Provided sample code: No
  • Provided link: No