1 | import * as React from 'react';
|
2 | import { Simplify } from '@mui/types';
|
3 | import { SlotComponentProps } from '../utils';
|
4 | import { PolymorphicProps } from '../utils/PolymorphicComponent';
|
5 | export interface TabsRootSlotPropsOverrides {
|
6 | }
|
7 | type TabsOrientation = 'horizontal' | 'vertical';
|
8 | type TabsDirection = 'ltr' | 'rtl';
|
9 | export interface TabsOwnProps {
|
10 | |
11 |
|
12 |
|
13 | children?: React.ReactNode;
|
14 | |
15 |
|
16 |
|
17 |
|
18 | value?: string | number | null;
|
19 | |
20 |
|
21 |
|
22 | defaultValue?: string | number | null;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | orientation?: TabsOrientation;
|
28 | |
29 |
|
30 |
|
31 |
|
32 | direction?: TabsDirection;
|
33 | className?: string;
|
34 | |
35 |
|
36 |
|
37 | onChange?: (event: React.SyntheticEvent | null, value: number | string | null) => void;
|
38 | |
39 |
|
40 |
|
41 |
|
42 | selectionFollowsFocus?: boolean;
|
43 | |
44 |
|
45 |
|
46 |
|
47 | slotProps?: {
|
48 | root?: SlotComponentProps<'div', TabsRootSlotPropsOverrides, TabsOwnerState>;
|
49 | };
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | slots?: TabsSlots;
|
56 | }
|
57 | export interface TabsSlots {
|
58 | |
59 |
|
60 |
|
61 |
|
62 | root?: React.ElementType;
|
63 | }
|
64 | export interface TabsTypeMap<AdditionalProps = {}, RootComponentType extends React.ElementType = 'div'> {
|
65 | props: TabsOwnProps & AdditionalProps;
|
66 | defaultComponent: RootComponentType;
|
67 | }
|
68 | export type TabsProps<RootComponentType extends React.ElementType = TabsTypeMap['defaultComponent']> = PolymorphicProps<TabsTypeMap<{}, RootComponentType>, RootComponentType>;
|
69 | export type TabsOwnerState = Simplify<TabsOwnProps & {
|
70 | orientation: TabsOrientation;
|
71 | direction: TabsDirection;
|
72 | }>;
|
73 | export type TabsRootSlotProps = {
|
74 | ownerState: TabsOwnerState;
|
75 | ref: React.Ref<any>;
|
76 | className?: string;
|
77 | };
|
78 | export {};
|