Material-ui: Documentation: Typography variant

Created on 10 Oct 2018  路  4Comments  路  Source: mui-org/material-ui

  • [ x] This is not a v0.x issue.
  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Docs state "h3" variant can be used - https://material-ui.com/api/typography/

Current Behavior

console prints error

Warning: Failed prop type: Invalid prop `variant` of value `h3` supplied to `Typography`, expected one of ["display4","display3","display2","display1","headline","title","subheading","body2","body1","caption","button"].

| Tech | Version |
|--------------|---------|
| Material-UI | v1.5.0 |

Typography question

All 4 comments

I think I'm just out of date, closing until I confirm

Upgraded to 3.2.0 and it's still there

With the same warning? Looks like you have still a version before 3.2.0 in your dependency tree. Could you remove node_modules and install again? If you still have the same error pleas add you lockfile and prepare a minimal reproduction.

Warning: Failed prop type: Invalid prop variant of value h3 supplied to Typography, expected one of ["display4","display3","display2","display1","headline","title","subheading","body2","body1","caption","button"].

@JarLowrey You are definitely not using v3.2.0. Check your node modules :)

Was this page helpful?
0 / 5 - 0 ratings