Skip to content

Commit

Permalink
[TabScrollButton] Extend ButtonBase types (mui#38719)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli authored and mnajdova committed Sep 8, 2023
1 parent f7f1ffd commit d3b2acb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { SlotComponentProps } from '@mui/base';
import { InternalStandardProps as StandardProps, SvgIcon, Theme } from '..';
import { ButtonBaseProps } from '../ButtonBase';
import { SvgIcon, Theme } from '..';
import { TabScrollButtonClasses } from './tabScrollButtonClasses';

export interface TabScrollButtonStartIconSlotPropsOverrides {}
Expand All @@ -11,7 +12,7 @@ export interface TabScrollButtonOwnerState extends TabScrollButtonProps {
isRtl: boolean;
}

export interface TabScrollButtonProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
export interface TabScrollButtonProps extends ButtonBaseProps {
/**
* The content of the component.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ function SampleIcon() {
}),
}}
/>;

// Test that ButtonBase props should be available
<TabScrollButton direction="left" orientation="horizontal" centerRipple />;

0 comments on commit d3b2acb

Please sign in to comment.