import * as React from 'react'; import Tab from '@mui/material/Tab'; import Tabs from '@mui/material/Tabs'; import { createTheme } from '@mui/material/styles'; declare module '@mui/material/Tabs' { interface TabsPropsIndicatorColorOverrides { success: true; } } // theme typings should work as expected const theme = createTheme({ components: { MuiTabs: { variants: [ { props: { indicatorColor: 'success' }, style: { backgroundColor: '#e70000', }, }, ], }, }, }); ; // @ts-expect-error unknown indicatorColor ;