TextFieldComponent Documentation Example
See original GitHub issueIs your feature request related to a problem? Please describe.
I’ve been trying to provide the DatePicker
with a custom TextFieldComponent
, but I can’t for the life of me figure out what I am doing wrong. I have tried to find examples, but I found nothing in the current documentation. Is this something that is only supported by Typescript?
Describe the solution you’d like
Is it possible to get some examples on how to use a custom TextFieldComponent
?
Additional context
I am currently passing the component like so
TextFieldComponent={TextField}
where TextField
is the existing component provided by @material-ui. I was originally trying to pass InputBase
, but am trying this step to see if that was the issue. I get the following error: Warning: React does not recognize the `TextFieldComponent` prop on a DOM element.
I can’t help but feel like I am doing something incredibly stupid.
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top GitHub Comments
Why is this closed? It is not documented or have I missed the documentation?
https://codesandbox.io/s/o7oojxx1pq This must help