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'/>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- 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