Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/TabScrollButton/TabScrollButton.d.ts 2.06 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { SlotComponentProps } from "../utils/types.js";
  import { ButtonBaseProps } from "../ButtonBase/index.js";
  import { Theme } from "../styles/index.js";
  import SvgIcon from "../SvgIcon/index.js";
  import { TabScrollButtonClasses } from "./tabScrollButtonClasses.js";
  export interface TabScrollButtonStartIconSlotPropsOverrides {}
  export interface TabScrollButtonEndIconSlotPropsOverrides {}
  export interface TabScrollButtonOwnerState extends TabScrollButtonProps {
    isRtl: boolean;
  }
  export interface TabScrollButtonProps extends ButtonBaseProps {
    /**
     * The content of the component.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<TabScrollButtonClasses>;
    /**
     * The components used for each slot inside.
     * @default {}
     */
    slots?: {
      StartScrollButtonIcon?: React.ElementType;
      EndScrollButtonIcon?: React.ElementType;
    };
    /**
     * The extra props for the slot components.
     * You can override the existing props or add new ones.
     * @default {}
     */
    slotProps?: {
      startScrollButtonIcon?: SlotComponentProps<typeof SvgIcon, TabScrollButtonStartIconSlotPropsOverrides, TabScrollButtonOwnerState>;
      endScrollButtonIcon?: SlotComponentProps<typeof SvgIcon, TabScrollButtonEndIconSlotPropsOverrides, TabScrollButtonOwnerState>;
    };
    /**
     * The direction the button should indicate.
     */
    direction: 'left' | 'right';
    /**
     * If `true`, the component is disabled.
     * @default false
     */
    disabled?: boolean;
    /**
     * The component orientation (layout flow direction).
     */
    orientation: 'horizontal' | 'vertical';
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  
  /**
   *
   * Demos:
   *
   * - [Tabs](https://mui.com/material-ui/react-tabs/)
   *
   * API:
   *
   * - [TabScrollButton API](https://mui.com/material-ui/api/tab-scroll-button/)
   */
  export default function TabScrollButton(props: TabScrollButtonProps): React.JSX.Element;