ohctechv3/.svn/pristine/84/8475bd171ad237fb8425e19d4b8e7287dfc1738b.svn-base
2024-10-28 15:03:36 +05:30

37 lines
1.1 KiB
Plaintext

/// <reference types="react" />
export interface UseTabPanelParameters {
/**
* The id of the TabPanel.
*/
id?: string;
/**
* The ref of the TabPanel.
*/
rootRef?: React.Ref<HTMLElement>;
/**
* The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
*/
value?: number | string;
}
interface UseTabPanelRootSlotOwnProps {
'aria-labelledby'?: string;
hidden?: boolean;
id?: string;
ref: React.Ref<HTMLElement>;
}
export type UseTabPanelRootSlotProps<ExternalProps = {}> = ExternalProps & UseTabPanelRootSlotOwnProps;
export interface UseTabPanelReturnValue {
/**
* If `true`, it indicates that the tab panel will be hidden.
*/
hidden: boolean;
/**
* Resolver for the root slot's props.
* @param externalProps additional props for the root slot
* @returns props that should be spread on the root slot
*/
getRootProps: <ExternalProps extends Record<string, unknown> = {}>(externalProps?: ExternalProps) => UseTabPanelRootSlotProps<ExternalProps>;
rootRef: React.Ref<HTMLElement>;
}
export {};