question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextFieldComponent Documentation Example

See original GitHub issue

A GIF or MEME to give some spice of the internet

Is 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

20reactions
barbalexcommented, Nov 9, 2019

Why is this closed? It is not documented or have I missed the documentation?

12reactions
dmtrKovalenkocommented, Jul 7, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

TextFieldComponent Documentation Example · Issue #1165
I've been trying to provide the DatePicker with a custom TextFieldComponent , but I can't for the life of me figure out what...
Read more >
React Text Field component - Material UI - MUI
You can use composition to build custom components and give your app a unique feel. Below is an example using the InputBase component,...
Read more >
TextField API - Material UI - MUI
Name Type Default autoComplete string autoFocus bool false classes object
Read more >
How to use TextField Component in Material UI - GeeksforGeeks
We can use TextField Component in ReactJS using the following approach: ... Example 1: In this example, we will create a text field...
Read more >
How to render a material-ui input control instead a textfield for ...
To render an Input instead of a TextField component, you can pass a custom component to the TextFieldComponent prop on DatePicker . You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found