Material-ui typography themeoption useNextVariants type error

Viewed 1025

I'm getting error :

Object literal may only specify known properties, and 'useNextVariants' does not exist in type 'TypographyOptions | ((palette: Palette) => TypographyOptions)'

while trying to use useNextVariants in themeOptions.

export const themeOptions: ThemeOptions = {
typography: {
    useNextVariants: true,
    // more properties
    } }

const theme = createMuiTheme(themeOptions);

I'm using latest version of material-ui. I tried to change version but it seems it hasn't been defined in TypographyOptions in any version.

0 Answers
Related