Refactor #3983 - For TabView

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-24 10:07:13 +03:00
parent 0ddf82f471
commit 6e65824aeb
3 changed files with 29 additions and 7 deletions

View file

@ -19,6 +19,7 @@ export declare type TabPanelPassThroughOptionType = TabPanelPassThroughAttribute
export interface TabPanelPassThroughMethodOptions {
props: TabPanelProps;
parent: TabViewPassThroughOptions;
context: TabPanelContext;
}
/**
@ -102,6 +103,17 @@ export interface TabPanelProps {
*/
pt?: TabPanelPassThroughOptions;
}
/**
* Defines current options in TabPanel component.
*/
export interface TabPanelContext {
/**
* Current index of the tab.
*/
index: number;
}
/**
* Defines valid slots in TabPanel slots.
*/