[Typescript] TableHead type does not contain "classes" prop
See original GitHub issueFollowing the guide on https://material-ui-next.com/api/table-head/ it shows that the TableHead component contains the “classes” prop. However the exported type for TableHead doesn’t match that.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
<TableHead classes={{ root: classes.tableHeadRoot }} />
should be valid
Current Behavior
The following error occurs
Property 'classes' does not exist on type 'IntrinsicAttributes & TableHeadProps & { children?: ReactNode; }'
Tech | Version |
---|---|
Material-UI | 1.0.0-beta.44 |
React | 16.2 |
Typescript | 2.7.1 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[Typescript] TableHead type does not contain "classes" prop
Following the guide on https://material-ui-next.com/api/table-head/ it shows that the TableHead component contains the "classes" prop.
Read more >Material-UI: The key `wrapper` provided to the classes prop is ...
I have a project and in this project I have several interfaces and among these interfaces there is an interface to create a...
Read more ><thead>: The Table Head element - HTML - MDN Web Docs
This attribute is used to set the character to align the cells in a column on. Typical values for this include a period...
Read more >Documentation - Classes - TypeScript
Constructors can't have type parameters - these belong on the outer class declaration, ... This is trying to modify 'x' from line 1,...
Read more >TableCell API - Material UI - MUI
Specify the cell type. The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components. The ref is forwarded...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mattjennings , @oliviertassinari , if no one haven’t started working on this issue I can pick it up and make a PR.
@t49tran It’s a good catch, yes! Do you want to submit a second pull-request for that? 😃