pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
import * as React from 'react';
|
||||
export interface TabsContextValue {
|
||||
/**
|
||||
* The currently selected tab's value.
|
||||
*/
|
||||
value: number | string | null;
|
||||
/**
|
||||
* Callback for setting new value.
|
||||
*/
|
||||
onSelected: (event: React.SyntheticEvent | null, value: number | string | null) => void;
|
||||
/**
|
||||
* The component orientation (layout flow direction).
|
||||
*/
|
||||
orientation?: 'horizontal' | 'vertical';
|
||||
/**
|
||||
* The direction of the tabs.
|
||||
*/
|
||||
direction?: 'ltr' | 'rtl';
|
||||
/**
|
||||
* Registers a function that returns the id of the tab with the given value.
|
||||
*/
|
||||
registerTabIdLookup: (lookupFunction: (id: string | number) => string | undefined) => void;
|
||||
/**
|
||||
* If `true` the selected tab changes on focus. Otherwise it only
|
||||
* changes on activation.
|
||||
*/
|
||||
selectionFollowsFocus?: boolean;
|
||||
/**
|
||||
* Gets the id of the tab with the given value.
|
||||
* @param value Value to find the tab for.
|
||||
*/
|
||||
getTabId: (value: number | string) => string | undefined;
|
||||
/**
|
||||
* Gets the id of the tab panel with the given value.
|
||||
* @param value Value to find the tab panel for.
|
||||
*/
|
||||
getTabPanelId: (value: number | string) => string | undefined;
|
||||
}
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
declare const TabsContext: React.Context<TabsContextValue | null>;
|
||||
export declare function useTabsContext(): TabsContextValue;
|
||||
export { TabsContext };
|
||||
Reference in new issue
Block a user