/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/TabScrollButton/TabScrollButton.d.ts
87 строк
2 KB
Siriwat K
[internal] Prepare libraries for v9 stable release (#48206)
07 апр 2026, 11:54
Не верифицирован
07 апр 2026, 11:54
e4de3e2
Код
Авторство
О чём код?
import * as React from 'react'; import { SxProps } from '@mui/system'; import { SlotComponentProps } from '../utils/types'; import { ButtonBaseProps } from '../ButtonBase'; import { Theme } from '../styles'; import SvgIcon from '../SvgIcon'; import { TabScrollButtonClasses } from './tabScrollButtonClasses'; export interface TabScrollButtonStartIconSlotPropsOverrides {} export interface TabScrollButtonEndIconSlotPropsOverrides {} export interface TabScrollButtonOwnerState extends TabScrollButtonProps { isRtl: boolean; } export interface TabScrollButtonProps extends Omit<ButtonBaseProps, 'nativeButton'> { /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<TabScrollButtonClasses> | undefined; /** * The components used for each slot inside. * @default {} */ slots?: | { StartScrollButtonIcon?: React.ElementType | undefined; EndScrollButtonIcon?: React.ElementType | undefined; } | undefined; /** * 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 > | undefined; endScrollButtonIcon?: | SlotComponentProps< typeof SvgIcon, TabScrollButtonEndIconSlotPropsOverrides, TabScrollButtonOwnerState > | undefined; } | undefined; /** * The direction the button should indicate. */ direction: 'left' | 'right'; /** * If `true`, the component is disabled. * @default false */ disabled?: boolean | undefined; /** * 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> | undefined; } /** * * 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;