We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7367f9c commit e8fc35bCopy full SHA for e8fc35b
packages/core/src/Tabs/Tabs.d.ts
@@ -2,6 +2,12 @@ import { StandardProps, TabsProps } from "@material-ui/core";
2
3
export type HvTabsClassKey = "root" | "flexContainer" | "indicator" | "scroller";
4
5
-export type HvTabsProps = StandardProps<TabsProps, HvTabsClassKey>;
+export interface HvTabsProps extends StandardProps<TabsProps, HvTabsClassKey, "onChange"> {
6
+ /**
7
+ * Explicit re-declaration to workaround MUI typing issue
8
+ * https://github.com/mui-org/material-ui/issues/17454
9
+ */
10
+ onChange?: (event: React.SyntheticEvent, value: any) => void;
11
+}
12
13
export default function HvTabs(props: HvTabsProps): JSX.Element | null;
0 commit comments