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.

[Typescript] TableHead type does not contain "classes" prop

See original GitHub issue

Following 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
t49trancommented, May 5, 2018

@mattjennings , @oliviertassinari , if no one haven’t started working on this issue I can pick it up and make a PR.

0reactions
oliviertassinaricommented, May 6, 2018

do you think we should add a classes prop for TableFooter to keep it consistent with TableBody and TableHead

@t49tran It’s a good catch, yes! Do you want to submit a second pull-request for that? 😃

Read more comments on GitHub >

github_iconTop 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 >

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