|
| 1 | +import { FunctionComponent, HTMLProps } from 'react'; |
| 2 | + |
| 3 | +export interface TabsProps |
| 4 | + extends Omit<HTMLProps<HTMLDivElement>, 'className' | 'onSelect' | 'ref'> { |
| 5 | + className?: string | string[] | { [name: string]: boolean } | undefined; |
| 6 | + defaultFocus?: boolean | undefined; |
| 7 | + defaultIndex?: number | undefined; |
| 8 | + direction?: 'rtl' | 'ltr' | undefined; |
| 9 | + disabledTabClassName?: string | undefined; |
| 10 | + disableUpDownKeys?: boolean | undefined; |
| 11 | + domRef?: ((node?: HTMLElement) => void) | undefined; |
| 12 | + environment?: Window | undefined; |
| 13 | + focusTabOnClick?: boolean | undefined; |
| 14 | + forceRenderTabPanel?: boolean | undefined; |
| 15 | + onSelect?: |
| 16 | + | ((index: number, last: number, event: Event) => boolean | void) |
| 17 | + | undefined; |
| 18 | + selectedIndex?: number | undefined; |
| 19 | + selectedTabClassName?: string | undefined; |
| 20 | + selectedTabPanelClassName?: string | undefined; |
| 21 | +} |
| 22 | + |
| 23 | +export interface TabListProps |
| 24 | + extends Omit<HTMLProps<HTMLUListElement>, 'className'> { |
| 25 | + className?: string | string[] | { [name: string]: boolean } | undefined; |
| 26 | +} |
| 27 | + |
| 28 | +export interface TabProps |
| 29 | + extends Omit<HTMLProps<HTMLLIElement>, 'className' | 'tabIndex'> { |
| 30 | + className?: string | string[] | { [name: string]: boolean } | undefined; |
| 31 | + disabled?: boolean | undefined; |
| 32 | + disabledClassName?: string | undefined; |
| 33 | + selectedClassName?: string | undefined; |
| 34 | + tabIndex?: string | undefined; |
| 35 | +} |
| 36 | + |
| 37 | +export interface TabPanelProps |
| 38 | + extends Omit<HTMLProps<HTMLDivElement>, 'className'> { |
| 39 | + className?: string | string[] | { [name: string]: boolean } | undefined; |
| 40 | + forceRender?: boolean | undefined; |
| 41 | + selectedClassName?: string | undefined; |
| 42 | +} |
| 43 | + |
| 44 | +export const Tabs: FunctionComponent<TabsProps>; |
| 45 | +export const TabList: FunctionComponent<TabListProps>; |
| 46 | +export const Tab: FunctionComponent<TabProps>; |
| 47 | +export const TabPanel: FunctionComponent<TabPanelProps>; |
| 48 | + |
| 49 | +export declare function resetIdCounter(): void; |
0 commit comments