New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TextField] Improve the API documentation #9514
[TextField] Improve the API documentation #9514
Conversation
@@ -29,8 +29,10 @@ function TimePickers(props) { | |||
InputLabelProps={{ | |||
shrink: true, | |||
}} | |||
inputProps={{ | |||
step: 300, // 5 min | |||
InputProps={{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rosskevin I'm so happy to have the runtime checks back! Flow missed this regression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up, I think it will help a lot of users.
pages/api/text-field.md
Outdated
return <TextField id="time" type="time" InputProps={InputProps} />; | ||
``` | ||
|
||
You will find the following component structure: `TextField` > [`Input`](/api/input) > `input`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would kill this You will find
line. Instead:
For advanced cases, please look at the source of
TextField
and consider either a) using the upper case props for passing values direct to the components; or b) using the underlying components directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidently approved.
b1d7108
to
9e5e73f
Compare
It's something I wanted to do since a long time. The recent change was a good occasion :).
@rosskevin Sorry, I should have done a new commit for reviewing, it was too late before I realized it. |
no problem |
9e5e73f
to
a224e5b
Compare
Address api issue of #9326