mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
- derive TabProps from SharedEnhancedButtonProps (TabProps are passed… (#9218)
* - derive TabProps from SharedEnhancedButtonProps (TabProps are passed down to EnhancedButton inside)- Change signature of "onTouchTap" handler in TabProps to suit overridden "onTouchTap" in SharedEnhancedButtonProps * - fixed TabProps onTouchTap signature, added disabled property
This commit is contained in:
8
material-ui/material-ui.d.ts
vendored
8
material-ui/material-ui.d.ts
vendored
@@ -1587,18 +1587,20 @@ declare namespace __MaterialUI {
|
||||
export class Tabs extends React.Component<TabsProps, {}> {
|
||||
}
|
||||
|
||||
interface TabProps extends React.Props<Tab> {
|
||||
interface TabProps extends SharedEnhancedButtonProps<Tab> {
|
||||
className?: string;
|
||||
icon?: React.ReactNode;
|
||||
label?: React.ReactNode;
|
||||
onActive?: (tab: Tab) => void;
|
||||
onTouchTap?: (value: any, e: TouchTapEvent, tab: Tab) => void;
|
||||
onTouchTap?: (value: any, e?: TouchTapEvent, tab?: Tab) => void;
|
||||
selected?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
value?: any;
|
||||
width?: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
export class Tab extends React.Component<TabProps, {}> {
|
||||
export class Tab extends React.Component<
|
||||
TabProps, {}> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user